fattony69 Well-known member Oct 2, 2012 #1 I am trying to put ads between category nodes on my site. Essentially I want to do this, but I am not sure how to do it.
I am trying to put ads between category nodes on my site. Essentially I want to do this, but I am not sure how to do it.
Arty Well-known member Oct 2, 2012 #2 First you need to wrap forums list in a div and before it add another div for left side. In forum_list.html find Code: <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if> and replace with something like this Code: <xen:if is="{$renderedNodes}"> <div class="websiteLeft"> Your ad code here! </div> <div class="websiteMiddle"> <xen:include template="node_list" /> <div style="linkUnit"> Your link unit here! </div> </div> </xen:if> and add CSS entries for it: Code: .websiteLeft { float: left; width: 160px; } .websiteMiddle { margin-left: 170px; } .linkUnit { margin: 5px auto; width: 468px; } .websiteMiddle:after { content: ''; display: block; clear: both; } That should take care of left side bar. To add ads before categories, edit template note_category_level_1.html. At the end of file add something like this: Code: <li class="noteAds"> Ad Unit Here! </li> and add css for it like this: Code: .nodeAds { margin: 5px auto; width: 728px; } Add all that CSS for to EXTRA.css template Upvote 0 Downvote
First you need to wrap forums list in a div and before it add another div for left side. In forum_list.html find Code: <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if> and replace with something like this Code: <xen:if is="{$renderedNodes}"> <div class="websiteLeft"> Your ad code here! </div> <div class="websiteMiddle"> <xen:include template="node_list" /> <div style="linkUnit"> Your link unit here! </div> </div> </xen:if> and add CSS entries for it: Code: .websiteLeft { float: left; width: 160px; } .websiteMiddle { margin-left: 170px; } .linkUnit { margin: 5px auto; width: 468px; } .websiteMiddle:after { content: ''; display: block; clear: both; } That should take care of left side bar. To add ads before categories, edit template note_category_level_1.html. At the end of file add something like this: Code: <li class="noteAds"> Ad Unit Here! </li> and add css for it like this: Code: .nodeAds { margin: 5px auto; width: 728px; } Add all that CSS for to EXTRA.css template
Jake Bunce Well-known member Oct 3, 2012 #3 I was gonna suggest this: http://xenforo.com/community/threads/banner-on-the-middle-categories.34850/#post-395748 Upvote 0 Downvote
I was gonna suggest this: http://xenforo.com/community/threads/banner-on-the-middle-categories.34850/#post-395748
fattony69 Well-known member Oct 3, 2012 #4 Jake Bunce said: I was gonna suggest this: http://xenforo.com/community/threads/banner-on-the-middle-categories.34850/#post-395748 Click to expand... That worked perfectly! Upvote 0 Downvote
Jake Bunce said: I was gonna suggest this: http://xenforo.com/community/threads/banner-on-the-middle-categories.34850/#post-395748 Click to expand... That worked perfectly!