XenForo Change forum_list title and H1 only

AynaZ

Supervisor
  • Thread starter
  • Admin
  • #1
Head over to your Admin CP > Setup > Options > Basic Options > Change your board title to the name of your forum only. For example, JoyFreak is my board name. This will be used consistently throughout the forums and you want to keep the consistency of your forum name throughout all pages. If the forum_list is the landing page of your forum, then this guide will be useful to you and can help improve your SEO if done correctly. You can add a keyword(s) to your title and h1 to help increase SEO for your homepage and this guide will walk you through on how to do that.

Open template: PAGE_CONTAINER
Find:

Code:
<title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
Add above:
Code:
<xf:if is="$template == 'forum_list'">
<title><xf:title page="{$pageNumber}" /></title>
<xf:else />
  • Open template: forum_list
  • Replace:
Code:
<xf:if is="$xf.options.forumsDefaultPage != 'forums' OR ($xf.options.indexRoute AND $xf.options.indexRoute != 'forums/')">
<xf:title>{{ phrase('forum_list') }}</xf:title>
<xf:else />
<xf:h1>{$xf.options.boardTitle}</xf:h1>
</xf:if>
  • With:
Code:
<xf:title>{{ phrase('phrase_title') }}</xf:title>
<xf:h1>{{ phrase('phrase_h1') }}</xf:h1>
Make sure to add two phrases by heading to Admin CP > Appearance > Phrases > Add Phrase
There, you'll be able to add the above two phrases.

Advice: Use a keyword(s) that best describes your forum and use them in both phrases.
 
  • Tags
    change forum_list title and h1 only tips change forum_list title and h1 only آموزش تغییر عناوین نوشته در زنفورو آموزش عنوان ها در زنفورو
  • Back
    Top Bottom