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

Google Adds

Discussion in 'XenForo Questions and Support' started by Rich, Oct 8, 2010.

  1. Rich

    Rich Active Member

    Can someone help me manually add Google adds in the header? Im not sure what template and how to add the code.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> header

    For example, add the following code:

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

    <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}" />
    	        <div style="float: right;">
    	        	BANNER CODE HERE
  3. Andy.N

    Andy.N Well-Known Member

    Cool, where can i do the same but after last post in a thread?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> thread_view

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

    	<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:edithint template="attached_files" />
    	<div align="center">
    	        BANNER CODE HERE
    	<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">
    Rich likes this.
  5. ArnyVee

    ArnyVee Well-Known Member

    Thanks for the info Jake :D
  6. Rich

    Rich Active Member

    Worked great thank you
  7. Andy.N

    Andy.N Well-Known Member

    I believe <div align="center"> has been deprecated and should be replaced with
    <div style="text-align:center">

Share This Page