Jump to content

Replace string with special character in product page title


Recommended Posts

I need to replace a certain string with a special character in Smarty file. For example replace "xxxstarxxx" with ⭐ character in the title of the product page.

I've tried to change the header.tpl file of the theme in order to do that, but it doesn't work. I've tried with both decimal and hexadecimal HTML code of the ⭐ character.

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

I gues the syntax isn't good, I know very little about Smarty and how Prestashop code works.

What code should I use in order to accoplish this?

 

Thanks!

Link to comment
Share on other sites

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...