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

XF 1.3 Subtitle for Index page

Discussion in 'XenForo Questions and Support' started by JackieChun, Jun 6, 2014.

  1. JackieChun

    JackieChun Active Member

    Hey guys,

    Upgrading from IP Board, so will have a bunch of questions in the next few days.

    Is there an option to have a subtitle for my forum index? IPB had that. For example, if the forum title is Widget Forums and the subtitle is Everything widgets, everyday!, IPB would display the index page title as Widget Forums - Everything widgets, everyday!

    This is very helpful for SEO, because it gives a Google user an instant description of your forum beyond the title, and allows you to "cheat" because you're basically adding an extra phrase to your meta description.

    That subtitle would only shown on the index, and not topics or forums. Can we implement something like this in XenForo?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The simplest way to achieve that is to edit the forum_list template and change the xen:h1 contents.
  3. JackieChun

    JackieChun Active Member

    Thank you sir :)
  4. JackieChun

    JackieChun Active Member

    OK, I tried it, and <xen:h1> only changed the title near the breadcrumb. I was talking about the <title> tag.
  5. JackieChun

    JackieChun Active Member

    I've figured it out. Find the following line in the page_container template.

    <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
    Change it as follows

    <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle} - WHATEVER ELSE YOU WANT IN THE TITLE</xen:if></title>

Share This Page