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

remove board from title tag other than home

Discussion in 'Styling and Customization Questions' started by Brandon Sheley, Jul 9, 2011.

  1. Brandon Sheley

    Brandon Sheley Well-Known Member

    Is there a way to remove the forum title from the post?

    Here is an example...

    Here is what it's currently showing

    Code:
    <title>HEREAFTER Featurette: Visual Effects Shot Breakdowns Reel | General Forums</title>
    
    
    I'd like it to be

    Code:
    <title>HEREAFTER Featurette: Visual Effects Shot Breakdowns Reel</title>
    What template do I need to edit for that?

    Thanks

    This was posted on the blog thread but than I found out my forum name is all all threads as well.
    I'd like the forum name on the forum page itself, the thread and categories should use their names as the title tag, not (thread title - board name)

    I'd like to suggest this for future releases as well as let me know what I need to edit to fix my version now.

    Thanks
     
    TheComputerGuy likes this.
  2. TheComputerGuy

    TheComputerGuy Active Member

    This is a great addition to keywords as well, yes?
     
  3. Mike

    Mike XenForo Developer Staff Member

    I'm assuming this wasn't actually supposed to be a suggestion, or was it based on the last comment?

    The <title> tag formats should be defined in PAGE_CONTAINER.
     
    Brandon Sheley likes this.
  4. Brandon Sheley

    Brandon Sheley Well-Known Member

    Hello Mike

    Actually it was suppose to be a suggestion as per this line
    (I'd like to suggest this for future releases as well)

    It's better for the admins as far as their longtail SEO goes.
    You don't want the same phrase in all your title tags even if it is your forum name.

    Thanks for the template name, I'm going to go fix that right now :)

    One thing, if I remove the board from the title tag, will it remove it from my forum home page as well?

    thx

    ps.. I removed {$xenOptions.boardTitle} from that template and it removed the title from the forum home page but not from the thread pages

    the opposite of what I'm after :p
     
  5. Mike

    Mike XenForo Developer Staff Member

    There should be 2 cases - when there's a specific page title, and when there's not. You want to leave it when there's no specific title.
     
    Brandon Sheley likes this.
  6. Brandon Sheley

    Brandon Sheley Well-Known Member

    found it, thanks for the help and I do hope you consider removing this code from future releases :)

    Code:
     | {$xenOptions.boardTitle}
    But I guess that's really on the designers, so I hope they consider it as well :p
     
  7. Brandon Sheley

    Brandon Sheley Well-Known Member

    funny thing, I needed to do this on my new site and I googled "remove board name from all pages, xenforo <title>" and found this thread :D
    I had forgot I made it :p
     
  8. Mike Creuzer

    Mike Creuzer Well-Known Member

    Okay this is very strange. :p

    When Brandon made this change on one of my product, it automatically edited page_container_js_head which is a template NOT edited (thus it is inherited from master templates) and this was the code:

    Code:
    <script src="{$jQuerySource}"></script>
    <xen:if is="{$jQuerySource} != {$jQuerySourceLocal}">
    <script>if (!window.jQuery) { document.write('<scr'+'ipt type="text/javascript" src="{$jQuerySourceLocal}"><\/scr'+'ipt>'); }</script>
    </xen:if><xen:if is="{$xenOptions.uncompressedJs} == 1 OR {$xenOptions.uncompressedJs} == 3">
    <script src="{$javaScriptSource}/jquery/jquery.xenforo.rollup.js?_v={$xenOptions.jsVersion}"></script></xen:if>
    <script src="{xen:helper javaScriptUrl, '{$javaScriptSource}/xenforo/xenforo.js?_v={$xenOptions.jsVersion}'}"></script>
    
    Which removed:
    Code:
    <!--XenForo_Require:JS-->
    What in the world could cause this? Im confused by this :p
     
    Brandon Sheley likes this.
  9. mrGTB

    mrGTB Well-Known Member

    I wouldn't worry too much about that Brandon, in terms of SEO it's in the correct place at the end of the thread title. Had it been the other way around like this below, then I'd want it removed or moved to the end. Although I agree, it might be a good idea generally to remove it from thread titles in future XenForo release.

    Code:
    <title>General Forums | HEREAFTER Featurette: Visual Effects Shot Breakdowns Reel</title>
     
  10. Mike Creuzer

    Mike Creuzer Well-Known Member

    Can someone answer my question? It has me baffled! :p
     
    Brandon Sheley likes this.
  11. Brandon Sheley

    Brandon Sheley Well-Known Member

    ditto :(
     
  12. CyclingTribe

    CyclingTribe Well-Known Member

    I'm intrigued by this and have removed the site title from my GeeksChat PAGE_CONTAINTER template to see if it has an impact? (y)
     
    Brandon Sheley likes this.
  13. kkm323

    kkm323 Well-Known Member

    I wounder why they have this as default feature
     
  14. melbo

    melbo Well-Known Member

    Brandon, Did you ever figure this out satisfactorily?
    Does removing that one piece from PAGE_CONTAINER do the trick or did it introduce other problems?[/quote]
     
  15. Brandon Sheley

    Brandon Sheley Well-Known Member

    I never had any problems with the default theme and removing the bb title on all pages.
     
  16. melbo

    melbo Well-Known Member

    Thanks. non-default is the wildcard then.
     
  17. Brandon Sheley

    Brandon Sheley Well-Known Member

    I know this is an old post but I just had to do a google search to remove the title and had found my old thread..lol

    Anyways I just ran the edit on a paid style, I think one of audentio's and it worked fine for me.
    Not that this helps you much but maybe it's been cleaned up over the last 3 years.
     

Share This Page