Changing the page title separator
Permalink
So, how are we accomplishing this with 5.7? I'm having trouble finding documentation and '::' is definitely my least favorite separator of all time. Lol. Also, I know Google doesn't really like it but I hate having the site name first. I've always been an advocate of "Page Title | Site Name" as the order of a title. Any help? Maybe make this a simple edit from the dashboard? Just a thought. Until then though, I'm definitely looking for the solution.
Thanks!
Thanks!
Ha, we're just too damn helpful. Beat me to it!
The settings for this are called 'title_format' and 'title_segment_seperator'.
They're not currently editable via the dashboard (although that would be a good idea), but they can be quickly overridden.
Create the file /application/config/concrete.php and in that put:
Then change as necessary. I'm not 100% sure what the second config value does, I was only able to change things via the title_format value. Changing that to something like '%2$s - %1$s' will swap the order around and put a dash in the middle, for example.
If you've already created a concrete.php file in the config directory, you'll just need to add these values into the existing array.
They're not currently editable via the dashboard (although that would be a good idea), but they can be quickly overridden.
Create the file /application/config/concrete.php and in that put:
Then change as necessary. I'm not 100% sure what the second config value does, I was only able to change things via the title_format value. Changing that to something like '%2$s - %1$s' will swap the order around and put a dash in the middle, for example.
If you've already created a concrete.php file in the config directory, you'll just need to add these values into the existing array.
This tutorial covers the page separator:
"How to change the default "site name :: page title" formatting in 5.7"
http://documentation.concrete5.org/tutorials/how-to-change-the-defa...
Example: page title in first position