Is it possible to customise the format for title tags on a page type basis? If not, does anyone know of a plugin, or a plugin that could be used as a basis to create this functionality please?
It is not currently possible to modify the title format.
What’s the purpose of changing the title? If it is for the benefit of users browsing the site, then it should be possible to override the title using a theme component. If you want to change the title that Google sees, then you would need to use a plugin.
It’s mainly for the purpose of Google and other bots but it makes sense for readers too (I just need to add one word to make what the forum is about more explicit).
Do you know of any links to threads or guides that could help with making such a plugin please David?
If you just want to add a single word to the end, you could add it to the “Title” site setting. Although that will appear in more places than just the page title.
For crawlers, a plugin would need to override the page_title method
I don’t think there’s a step-by-step guide for these kind of overrides, so if you can manage with the site setting change that would be a lot easier.
Hi David, sorry for taking so long to get back to this!
I’ve just created a plugin to override the page-title method however the site name is still being added on to the end (any additions I make are simply inserted before the end) so it looks like it’s being added somewhere else.
I created a plugin to override the whole show.html.erb file but nothing happened. (I’m also not able to test with JS turned off on my dev machine - I just get a blank page, is that normal? Edit: posted here)