• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Google Adds

Rich

Active member
#1
Can someone help me manually add Google adds in the header? Im not sure what template and how to add the code.
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> header

For example, add the following code:

Code:
	        <div style="float: right;">
	        	BANNER CODE HERE
	        </div>
Here is the code placed within the header template:

Code:
<div class="pageWidth">
	<div class="pageContent">
		<div id="logo"><a href="{$logoLink}">
			<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
			<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
		</a></div>	

	        <div style="float: right;">
	        	BANNER CODE HERE
	        </div>
	</div>
</div>
 

Jake Bunce

XenForo moderator
Staff member
#4
Admin CP -> Appearance -> Templates -> thread_view

Add the div shown below. It's about 2/3 of the way down the template:

Code:
	<ol class="messageList" id="messageList">
		<xen:foreach loop="$posts" value="$post">
			<xen:if is="{$post.message_state} == 'deleted'">
				<xen:include template="post_deleted_placeholder" />
			<xen:else />
				<xen:include template="post" />
			</xen:if>
		</xen:foreach>
		<xen:edithint template="attached_files" />
	</ol>

	<div align="center">
	        BANNER CODE HERE
	</div>

	<xen:if is="{$inlineModOptions}">
		<div class="sectionFooter InlineMod Hide">
			<label for="ModerationSelect">{xen:phrase perform_action_with_selected_posts}...</label>

			<xen:include template="inline_mod_controls">
				<xen:set var="$text">{xen:phrase post_moderation}</xen:set>
				<xen:set var="$options">
 

Andy.N

Well-known member
#7
Admin CP -> Appearance -> Templates -> thread_view

Add the div shown below. It's about 2/3 of the way down the template:

Code:
	<div align="center">
	        BANNER CODE HERE
	</div>
Jake,
I believe <div align="center"> has been deprecated and should be replaced with
Code:
<div style="text-align:center">