Jump to content

[solved] changing title separator from " - " to " | "


ws4u

Recommended Posts

I am running presta 1.4.10 and would like to change the title separator for all titles in the shop from " - " to " | ". The current format is: title of the page - shopname, i need: title of the page | shopname.

 

I wanted to rewrite all " - " into " | " in tools php, is this a good solution? Anyone has some experience with this.

 

Thank you

Edited by vekia (see edit history)
Link to comment
Share on other sites

I am running presta 1.4.10 and would like to change the title separator for all titles in the shop from " - " to " | ". The current format is: title of the page - shopname, i need: title of the page | shopname.

 

I wanted to rewrite all " - " into " | " in tools php, is this a good solution? Anyone has some experience with this.

 

Thank you

 

open the file: header.tpl located in the themes / your_theme / header.tpl

 

then use the:

 

<title>{$meta_title|replace:'-':'|'|escape:'htmlall':'UTF-8'}</title>

 

isntead the default one

  • Like 1
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...