Chromaniac Well-known member Licensed customer Nov 13, 2014 #1 Right now it comes before the thread title which is kind of annoying and not that great for SEO. Any easy solution to remove it from the title tag? Or move its position to later part of the title? Thanks.
Right now it comes before the thread title which is kind of annoying and not that great for SEO. Any easy solution to remove it from the title tag? Or move its position to later part of the title? Thanks.
P Paul B XenForo moderator Staff member Licensed customer Nov 13, 2014 #2 That is controlled in the thread_view template (for example) by these lines of code: Code: <xen:title>{xen:helper threadPrefix, $thread, escaped}{$thread.title}{xen:helper pagenumber, $page}</xen:title> <xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1> The helper function prepends the prefix text and a - so you can just remove the {xen:helper threadPrefix, $thread, escaped}. Upvote 1 Downvote
That is controlled in the thread_view template (for example) by these lines of code: Code: <xen:title>{xen:helper threadPrefix, $thread, escaped}{$thread.title}{xen:helper pagenumber, $page}</xen:title> <xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1> The helper function prepends the prefix text and a - so you can just remove the {xen:helper threadPrefix, $thread, escaped}.
adaaaam New member Licensed customer Apr 2, 2017 #5 Oguzhan Malli said: it can work in 1.5? Click to expand... I just tried this in 1.5.13 and it worked flawlessly. Upvote 0 Downvote
Oguzhan Malli said: it can work in 1.5? Click to expand... I just tried this in 1.5.13 and it worked flawlessly.
v8td Member Licensed customer Aug 16, 2017 #6 How can i remove just the "-" between prefix and thread title? Upvote 0 Downvote
P Paul B XenForo moderator Staff member Licensed customer Aug 16, 2017 #7 It's not possible - it's part of the helper function. Upvote 0 Downvote
v8td Member Licensed customer Aug 17, 2017 #8 Ok, but where is the php function that generate that string? Upvote 0 Downvote
EasyExpat Member Licensed customer Sep 18, 2018 #9 Brogan said: It's not possible - it's part of the helper function. Click to expand... It is possible to specify the type of escape (including blank) such as: Code: <xen:title>{xen:helper threadPrefix, $thread, escaped, ''}{$thread.title}{xen:helper pagenumber, $page}</xen:title> Upvote 0 Downvote
Brogan said: It's not possible - it's part of the helper function. Click to expand... It is possible to specify the type of escape (including blank) such as: Code: <xen:title>{xen:helper threadPrefix, $thread, escaped, ''}{$thread.title}{xen:helper pagenumber, $page}</xen:title>