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

Customized title tag for forum home

Discussion in 'Styling and Customization Questions' started by ibenick, Jan 18, 2013.

  1. ibenick

    ibenick Active Member

    This seems simple but I'm having trouble figuring it out. I'd like to be able to set my <title> tag for a specific template, in this case forum_list. Instead of having it auto populate with the Board Title, I'd like to set it to something specific in that page. I played around with a few things and I was able to change the open graph meta for one page but not the page title. I would also like to figure out how to alter the meta description for a certain page. Anyone know how I can do this?

  2. ibenick

    ibenick Active Member

    Doh! After trying everything, I finally figured it out right after I posted this. Sorry!

    <xen:container var="$head.title">
        <title>My Custom Page Title</title></xen:container>
  3. ibenick

    ibenick Active Member

    Oh I lied, that only sort of works. That just puts in a second title tag. So I guess, I do need help... :sick:
  4. Brandon Sheley

    Brandon Sheley Well-Known Member

    well.. what I did

    remove the board title from all pages but the forum home page (this will help your long tail SEO)
    remove hide the h1 tag above the forum on all pages
    set the board name to whatever you want
  5. shadrxninga

    shadrxninga Well-Known Member

    You need to use <xen:title> tag to set the title of the page, that should replace the old title with your custom one

    Doing this should work :)

    <xen:title>My Custom Page Title</xen:title>
    Jake Bunce and ibenick like this.
  6. ibenick

    ibenick Active Member

    That's the ticket! Thanks!
    shadrxninga likes this.
  7. ibenick

    ibenick Active Member

    I did notice that still adds on the board title to the description.

    So this:

    <xen:title>My Custom Page Title</xen:title>
    Ends up like this:

    <title>My Custom Page Title | My Board Title</title>

    Any way to completely get rid of the board title on selected pages?
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page