XF 2.2 How to remove site's name from meta title?

ritesh

Member
Hello, how do I remove the site's name from meta titles? It breaks the titles in search results sometimes due to added characters.

This part:
site-xenforo-com-Google-Search.png
 

Brogan

XenForo moderator
Staff member
Edit the PAGE_CONTAINER template.

Find:
HTML:
<title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>

Replace:
HTML:
<title><xf:title formatter="%s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
 
Top