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

Lack of interest Forums tab should show "Forums" when selected

Chris D

XenForo developer
Staff member
#4
This is one of those things that probably isn't going to get conclusive support one way or another.

Of course there's a very simple solution. Edit template forum_list.

Find:
Code:
<xen:h1>{$xenOptions.boardTitle}</xen:h1>
Replace:
Code:
<xen:h1>{xen:phrase forums}</xen:h1>
 

AndyB

Well-known member
#5
Most forums show the board title in the logo, showing the board title again a few inches below the logo looks bad and is redundant.

The other tabs show the tab name at this location, it would be nice if the Forum tab did as well.
 

Chris D

XenForo developer
Staff member
#6
Also for most sites the title at the top of the forum list is the site's only home page, hence it's nice for them to convey the full site's title. I wouldn't usually reference SEO because it's mostly redundant, but actually a descriptive title here (in the H1 tag of the home page) is actually better than something generic such as "Forums". Bearing in mind search engine bots can't read text in logos, the text here is far from redundant, but can be easily changed if you wish.
 

AndyB

Well-known member
#7
When viewing the forum list page, in my experience search engines get the forum board title from the browsers tab and ignore the text below the breadcrumb.
 

Chris D

XenForo developer
Staff member
#8
The board title in the browser tab comes from the board title in the H1 tag that you are proposing gets removed.

If the code was changed as per my instructions here:

This is one of those things that probably isn't going to get conclusive support one way or another.

Of course there's a very simple solution. Edit template forum_list.

Find:
Code:
<xen:h1>{$xenOptions.boardTitle}</xen:h1>
Replace:
Code:
<xen:h1>{xen:phrase forums}</xen:h1>
Then taking this site as an example, when on the forum list here, you would see "Forums" in the browser tab, rather than "XenForo Community".

To have a different H1 and a different title, you would need to add this to the forum_list template:

Code:
<xen:title>{$xenOptions.boardTitle}</xen:title>
 

AndyB

Well-known member
#9
I just tried editing the forum_list as you suggested in post #4 this and I get different results. On my forum the browsers forum tab shows the board title and the text below the breadcrumb shows "Forums".
 

Chris D

XenForo developer
Staff member
#10
Yes, you're right.

The content in post 4 is sufficient to achieve what you want.

What's probably more correct is to remove the <xen:h1> tag completely, and replace it with:
Code:
<xen:title>{xen:phrase forums}</xen:title>
That would make the H1 tag read:
Forums

And the title tag read:
Forums | XenForo Community
 

Brogan

XenForo moderator
Staff member
#11
The xen:h1 tag sets the page title.
The xen:title tag sets the browser tab title.

If you just use xen:title, the h1 will be generated from it.
If you just use xen:h1, the browser tab title will be the board title.
 

Lawrence

Well-known member
#12
I use this to hide the H1 tag when viewing the forum list:

HTML:
                            <xen:if is="{$contentTemplate} != 'forum_list'">
                            <div class="titleBar">
                                {xen:raw $beforeH1}
                                <h1><xen:if
                                    is="{$h1}">{xen:raw $h1}<xen:elseif
                                    is="{$title}" />{xen:raw $title}<xen:else
                                    />{$xenOptions.boardTitle}</xen:if></h1>
                               
                                <xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
                            </div>
                            </xen:if>
 

AndyB

Well-known member
#14
The xen:title tag sets the browser tab title.
Hi Paul,

Thank you for looking into this as well.

When I change the forum_list to:

Code:
<xen:title>{xen:phrase forums}</xen:title>
my forum tab shows this:

pic001.jpg

Perhaps because this is the most important page in a forum it would be best to use this:

Code:
<xen:h1>{xen:phrase forums}</xen:h1>
that way the board title will be shown and will be better for SEO. It would be great to make this change because having the board title repeated below the breadcrumb looks bad IMHO and as you can see others have had to make this change on their forums.

Thank you.