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

Removing Board Title from forum_view

Discussion in 'XenForo Questions and Support' started by Michael, Oct 8, 2010.

  1. Michael

    Michael Active Member

    I am wanting to remove the board title from the forum view template as well as a few others. In forum_view I see this:
    Code:
    <xen:title>{$forum.title}{xen:helper pagenumber, $page}</xen:title>
    
    I have tried removing different sections of that with no luck at all, any ideas on how I can achieve this?

    Thank you.
     
    anotheralias likes this.
  2. Lawrence

    Lawrence Well-Known Member

    I'm not sure what you are trying to remove. The xen:title sets the title attribute in the header of the page. You will need to find all instances of it to remove each generated page's title. Is that what you are trying to remove, or the name in H1 tags just below the breadcrumbs (<xen:h1>{$forum.title}</xen:h1>), or in forum_list: <xen:h1>{$xenOptions.boardTitle}</xen:h1>?
     
  3. Michael

    Michael Active Member

    I just want to remove the automatic board title such as on this page, | XenForo Community :)
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Ah, do you mean in the browser bar?

    browser.PNG
     
  5. Michael

    Michael Active Member

    Yes thats correct.
     
  6. Carlos

    Carlos Well-Known Member

    I edited this template to get the | Modern Warfare 2 Forums but I can't find the template for index or rather, "forumhome."
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    Change this:

    Code:
        <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
    
    ...to this:

    Code:
        <title><xen:if is="{$title}">{xen:raw $title}<xen:else  />{$xenOptions.boardTitle}</xen:if></title>
    
     
    Michael and anotheralias like this.
  8. erich37

    erich37 Well-Known Member

    is there any chance to have the "Title" at the browser-bar diffferent to the Forum-Name (the one Forum-Name which is showing on top of the Forum-list) ?
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The board title is defined in your:

    Admin CP -> Home -> Options -> Basic Board Information -> Board Title

    Otherwise you can change that specific occurrence of the board title by editing the same template as above:

    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    Look at this code:

    Code:
        <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
    
    And replace the two instances of this with a different name:

    Code:
    {$xenOptions.boardTitle}
    
     
    erich37 likes this.
  10. Carlos

    Carlos Well-Known Member

    What I did with my instance is put "| Modern Warfare 2 Forums" right after the {$xenOptions.boardTitle} part. And this shows up on every page in my instance.

    This does NOT mess with your Forum title in forum list, or any forum node.
     
  11. erich37

    erich37 Well-Known Member

    that made it.
    many thanks Jake!
     

Share This Page