XF 2.2 Stop BoardTitle from being appended in all pages

GPA-R

Active member
Hi,

By default XF appends the board title in all pages' title. How can this be removed?

Any template modification of <title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title> doesn't seem to make any difference. Trying to avoid editing the template directly. (even though I assume that's what I'll end up doing)

Any ideas?

Thanks in advance
 
Last edited:
I don't suggest changing the templates directly. You can and should always use the template modification.

I don't know if it is possible by using a setting but the following should work as the modification.

Template: PAGE_CONTAINER
Simple replacement
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>

Simply change the formatter attribute.
 
Hello,

That's exactly what I did but apparently it is not being applied to my child-theme as it seems to be using a different format.

I guess I'll have to use that one as search in replacement.
 
Back
Top Bottom