XF 2.1 Title

JoyFreak

Well-known member
Is there a way I can put a title after the board name for the forum index page. I.e “JoyFreak | Gaming Forum”. As it stands the title tags always go before the board name and I really only want it to display for the forum list so adding it to the board title will display on all pages and I don’t want that.
 
You can try this in PAGE_CONTAINER template, find <h1 class="p-title-value">{$h1}</h1> and replace the line with

HTML:
<xf:if is="$template == 'forum_list'">
    <h1 class="p-title-value">{$h1} | Gaming Forum</h1>
<xf:else />
    <h1 class="p-title-value">{$h1}</h1>
</xf:if>
 
You can try this in PAGE_CONTAINER template, find <h1 class="p-title-value">{$h1}</h1> and replace the line with

HTML:
<xf:if is="$template == 'forum_list'">
    <h1 class="p-title-value">{$h1} | Gaming Forum</h1>
<xf:else />
    <h1 class="p-title-value">{$h1}</h1>
</xf:if>
That didn't work :/
It's not actually the h1 value I am after. It's the page title. You know where the favicon is and next to it is the board title.. there is where I mean.
 
Last edited:
I worked it out:
PAGE_CONTAINER:
<xf:if is="$template == 'forum_list'">
<xf:set var="$title"><xf:title fallback="{$xf.options.boardTitle} | Gaming Forum" /></xf:set>
<xf:else />
<xf:set var="$title"><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" /></xf:set>
</xf:if>
 
Last edited:
Is there also this addon that I'm using a work perfect. ;)
 
Back
Top Bottom