XF 2.0 <xf:title></xf:title>

JoyFreak

Formerly Zuse
When I remove the insides of it, it leaves a big gap and when I remove the whole thing, it brings back the title. How do I remove that area completely????
 

Chris D

XenForo developer
Staff member
For SEO purposes, every page should have a title and output a <h1> tag.

If you don’t want the <h1> tag to display you can add this:
HTML:
<xf:h1 hidden="true" />
 

JoyFreak

Formerly Zuse
Thank you!

I am all for SEO but my board title is long and to have that on every page is annoying. I am using a portal and wanted that page free of the long title. So using the code you provided, will keep it hidden but still work for SEO purposes?
 

Chris D

XenForo developer
Staff member
It will remove the h1 tag, but the <title> tag will still be there (the title that appears in the browser tab, it won’t be displayed on the page anywhere).
 

RSI

Active member
Which temple do you add the <xf:h1 hidden="true" /> to, to get rid of the page titles on every page?
 
Last edited:

toodlez

Active member
It will remove the h1 tag, but the <title> tag will still be there (the title that appears in the browser tab, it won’t be displayed on the page anywhere).
any way to remove the browser tab title from displaying when you set a page node as the index page?
 
Top