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
And for regular browsers it would need to override the titleToken method
Hola David, ¡perdona por tardar tanto en responder a esto!
Acabo de crear un plugin para sobrescribir el método page-title, pero el nombre del sitio sigue agregándose al final (cualquier adición que haga simplemente se inserta antes del final), así que parece que se está agregando en otro lugar.
Creé un plugin para sobrescribir todo el archivo show.html.erb, pero no pasó nada. (Tampoco puedo probar con JS desactivado en mi máquina de desarrollo; solo obtengo una página en blanco, ¿es eso normal? Edición: publicado aquí)