Dickie Posted April 20, 2010 Share Posted April 20, 2010 Hi,Just wondering whether anyone knows how to change the default: 'Product page title; leave blank to use product name' I would like to use the short description, product name and shop name as the title in the product pages I know I could just go into every product and edit it all manually through the 'Click here to improve product's rank in search engines (SEO)' drop down option but I beleive there will be away to automatically get that information with a simple rule in tools.php? As I know that if you leave the title blank in 'Click here to improve product's rank in search engines (SEO)' drop down option then it will automatically set the title as the product name!Any help would be great Thanks Link to comment Share on other sites More sharing options...
Dickie Posted April 20, 2010 Author Share Posted April 20, 2010 All sorted now!!Heres how I done it for anyone else wondering how......Ok in Tools.php file go to /* Products specifics meta tags */ Replace line 413 return self::completeMetaTags($row, $row['name']); to return self::completeMetaTags($row, $row['name'].' - '.$row['description_short']); Then you have to edit the tiny_mce.js filefind forced_root_block: "p", and change that to: forced_root_block: false, That should sort out the tags in the title pageHope this helps anyone.. Link to comment Share on other sites More sharing options...
rocky Posted April 21, 2010 Share Posted April 21, 2010 Thanks for the info! Changing forcedRootBlock to false is a much better solution than truncated the string like I have been doing. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
SpyrosT Posted August 1, 2010 Share Posted August 1, 2010 Thank you for the tip.I have tried it and it works, but the is still there.Is there any other way to exclude any html code from the title tag? Link to comment Share on other sites More sharing options...
maryluke Posted September 1, 2010 Share Posted September 1, 2010 What version of Prestashop are you using? My site does not have a tools.php file. (https://shop.cook-smarter.com). Link to comment Share on other sites More sharing options...
Dickie Posted September 1, 2010 Author Share Posted September 1, 2010 Its in the classes folder! In all versions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now