XF 2.3 Duplicate page titles (in members profiles)

Anatoliy

Well-known member
Member profiles /members/username/ and their About pages /members/username/about have identical page titles. I have 5k members, so Google sees 5k page title duplications, which I guess is not good. Can I fix it somehow?
1. May be there is a switch in ACP that turn off About pages?
2. Template modification?
3. Something else?

Please advise.
 
Solution
I see what you are saying now. I misunderstood you and thought you were inferring that there was duplicate title tags on each page.

Give me a second and I'll figure out what's needed to fix it.



The simplest way is to edit the member_about template first line:

Change this:
<xf:title>{$user.username}</xf:title>

To this:
<xf:title>{$user.username} - About</xf:title>

You can also optionally create a template mod to make sure it does not get overridden the next time you update XenForo.
Probably template modification could fix this?
I guess adding conditional in a right template (if it's member's About page, then replace $page_title with "$page_title / About")?
Except ii don't know what template and how to write conditional properly. Help please.
 
I see what you are saying now. I misunderstood you and thought you were inferring that there was duplicate title tags on each page.

Give me a second and I'll figure out what's needed to fix it.



The simplest way is to edit the member_about template first line:

Change this:
<xf:title>{$user.username}</xf:title>

To this:
<xf:title>{$user.username} - About</xf:title>

You can also optionally create a template mod to make sure it does not get overridden the next time you update XenForo.
 
Last edited:
Solution
Back
Top Bottom