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

Remove Index Title From All Pages On Your Forum

M@rc

Well-known member
#1
Title : Remove Index Title From All Pages On Your Forum

I've wanted to know this from the start, since I've purchased an XenForo license. I never played around with the templates those days. I was a custom to vB's templates, lol.

Well, basically, this tutorial helps you remove the forum's index title, from all of the forums that you created for your community. ( screen shot below )

Example :



Now, let's get down to business, shall we? You're required to do a simple modification in your templates.

Step by Step :

  • Log into your admin control panel
  • Appearance => Templates => PAGE_CONTAINER
Search and find :

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

Remove :

Code:
 | {$xenOptions.boardTitle}
Then push the save button.
 

Brogan

XenForo moderator
Staff member
#3
It's just an aesthetic change.

It only affects how the page title is displayed in the browser tab.
 

M@rc

Well-known member
#4
What are benefits behind this?
It only affects how the page title is displayed in the browser tab.
Also, some people don't want the main keywords used from the main forum index's title, to appear on other web pages of the forum.

Search engines indexes the title, so it'll include the forum's index page keywords on every page of your XenForo forum :

 

Brogan

XenForo moderator
Staff member
#5
That's a fair point.

Personally I'd rather my site name appeared in search results though.
Every little helps, as the saying goes ;)
 

M@rc

Well-known member
#6
Personally I'd rather my site name appeared in search results though.
Every little helps, as the saying goes ;)
Yeah, it's good if you used a "site name" , but if you're just using lots of keywords, then it's not a good idea...
 

M@rc

Well-known member
#12
M@rc submitted a new resource:

Remove Index Title From All Pages On Your Forum (version 1.0) - How to remove the the index title from the title element

This shows you how to remove the index title from the title element of the pages in your forum.

Example :

View attachment 26016

Now, let's get down to business, shall we? You're required to do a simple modification in your templates.

Step by Step :

  • Log into your admin control panel
  • Appearance => Templates => PAGE_CONTAINER
Search and find :

Code:
<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else...
Read more about this resource...
 

AzzidReign

Well-known member
#13
I did something similar to this when I was running vb + vbseo. But I actually had the forum title that it was in. This way, Google knows better as to what this topic is fully about. Anyway to add the section title to the end of the title of the thread?