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

Can't get leaderboard above titles

Discussion in 'Troubleshooting and Problems' started by Jeff Fuqua, May 31, 2012.

  1. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    I'm having a small problem placing an ad where I'd like it to be.

    On both the thread_view and forum_view, I wish to place this leaderboard ABOVE the title. So I open up the templates and place my include above the title at the top of the template. But, for whatever reason, it always appears below the description.

    Any ideas? Thanks.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is a container var you can set called $beforeH1. See this post:


    You can see the usage in the PAGE_CONTAINER template:

    						<xen:hook name="page_container_content_title_bar">
    						<xen:if is="!{$noH1}">						
    							<!-- h1 title, description -->
    							<div class="titleBar">
    								{xen:raw $beforeH1}
    									is="{$h1}">{xen:raw $h1}<xen:elseif
    									is="{$title}" />{xen:raw $title}<xen:else
    								<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
  3. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    Thanks, Jake. I dropped the code in the notices template and that worked. I'll try out your suggestion as well.

Share This Page