• 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

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.

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>