PDA

View Full Version : Mobile theme and wrong title tag


Bodybuilder
11-19-2019, 09:02 PM
Hello to everyone. Since google changed to mobile indexing first I am facing the following issue:

I have the mobile theme enabled for old/new browsers and apparently the default VB4 mobile theme has the same <title></title> tag for every single of our threads. So now, since google crawls mainly the mobile theme, our individual thread SEO has gone down the drain.

Why does the VB4 default mobile theme display the same title tag for every single thread, and how can we correct this? All other non-mobile themes, are perfectly fine.

Thanks!

Dave
11-19-2019, 10:19 PM
If you look at the SHOWTHREAD template of the mobile style, there should be something like this:
<title>{vb:raw vboptions.bbtitle}</title>
replace that with the following: (this is used in regular styles)
<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}<vb:if condition="$pagenumber > '1'"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>

And then the thread title should show up properly for each thread.

Bodybuilder
11-19-2019, 10:38 PM
That seems to have worked, thank you so much Dave!

--------------- Added 1574211009 at 1574211009 ---------------

Update: seems to have worked only for thread titles. How do we do the same for forum category and sub-forum titles? Thanks!

Dave
11-20-2019, 12:00 AM
If you look at the template of those pages and copy the <title> line to the mobile template then it should fix that as well. (forumdisplay template)