Antakarana Posted November 21, 2012 Share Posted November 21, 2012 Maybe it's a silly question, but I wasn't able to find info about it... So maybe here somebody could help me. I was analyzing my website with google webmaster tools and it advise me to change duplicated pages title to improve SEO. Actualy the test results in all category pages with te same title (the shop name) in stead of the each category page own title. I have filled all metadata (title, description, keywords...) to every category and product pages, but even with that it seems that it doesn't appear at the front office. I'm using prestashop 1.5.2 and the url is http://nutri-cosmetica.com So please, anybody knows how to change the category page tittles to properly show them to the browsers? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted November 21, 2012 Share Posted November 21, 2012 http://www.prestasho..._1 you can find there how to delete shop name from page title from ps 1.5.x but deleting process is compatibile with older versions too 1 Link to comment Share on other sites More sharing options...
Antakarana Posted November 21, 2012 Author Share Posted November 21, 2012 (edited) Thanks!!! By doing that it will make it show the category title instead of the Webshop title? Edited November 21, 2012 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 21, 2012 Share Posted November 21, 2012 Thanks!!! By doing that it will make it show the category title instead of the Webshop title? if you set up the seo for category pages it will works, remember that you must find and override correct function in Meta class (class/Meta.php) Link to comment Share on other sites More sharing options...
Antakarana Posted November 21, 2012 Author Share Posted November 21, 2012 I'm reading the link but I'm a bit confused... My override/clasess/meta.php has only this code: <?php class Meta extends MetaCore { } Link to comment Share on other sites More sharing options...
Antakarana Posted November 21, 2012 Author Share Posted November 21, 2012 As I understand I have to add this code line to override/clasess/meta.php $row['meta_title'] = $title.$row['meta_title'].(!empty($page_number) ? ' ('.$page_number.')' : ''); Thats correct?? Link to comment Share on other sites More sharing options...
vekia Posted November 21, 2012 Share Posted November 21, 2012 I'm reading the link but I'm a bit confused... My override/clasess/meta.php has only this code: <?php class Meta extends MetaCore { } That's correct, because it's an "override" file. You must copy correct functions from classes/Meta.php to override/clasess/meta.php and change some parameters if you don't know how to do that, just wait for my tutorial about changing page titles for seo. It will be available tommorow / or tonight 1 Link to comment Share on other sites More sharing options...
Antakarana Posted November 21, 2012 Author Share Posted November 21, 2012 (edited) So everything you add into override folder dissables it from the original file without editing it... I didn't know that, it sounds interesting. OK, I will try the code with it and if it doesn't work I will wait for your tutorial Thanks for your help! Edited November 21, 2012 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
Antakarana Posted November 21, 2012 Author Share Posted November 21, 2012 mmmm it doesn't work.... I will have to wait for the tutorial then Link to comment Share on other sites More sharing options...
Antakarana Posted November 23, 2012 Author Share Posted November 23, 2012 (edited) hi! are there any news about the tutorial?? Edited November 23, 2012 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 23, 2012 Share Posted November 23, 2012 sure tutorial about deleting shop name from page title is available here: How to remove shop name from pages title in prestashop? In this paper, we will write step by step tutorial about deleting shop name from page title. It's one way to enhance / change SEO of your shop. We also assume that if you've come here you probably already know something about "SEO" and editing prestashop template (.tpl) files. If not - don't worry - we will clearly describe each steps in this paper... click to read 1 Link to comment Share on other sites More sharing options...
Antakarana Posted November 23, 2012 Author Share Posted November 23, 2012 sure tutorial about deleting shop name from page title is available here: How to remove shop name from pages title in prestashop? In this paper, we will write step by step tutorial about deleting shop name from page title. It's one way to enhance / change SEO of your shop. We also assume that if you've come here you probably already know something about "SEO" and editing prestashop template (.tpl) files. If not - don't worry - we will clearly describe each steps in this paper... click to read Thanks for your tutorial! I've followed step by step but in category titles now only are shown some category titles and others don't. For example in this main category you can see the correct main category title: However in this other main category you can't see any title: I've also tried with the meta.php file from the tutorial with identical results... I'm using PS 1.5.2 and I have filled all categories SEO meta info from backoffice... What I'm doing wrong?? Link to comment Share on other sites More sharing options...
vekia Posted November 23, 2012 Share Posted November 23, 2012 Thanks for your tutorial! I've followed step by step but in category titles now only are shown some category titles and others don't. For example in this main category you can see the correct main category title: However in this other main category you can't see any title: I've also tried with the meta.php file from the tutorial with identical results... I'm using PS 1.5.2 and I have filled all categories SEO meta info from backoffice... What I'm doing wrong?? I've noticed that overrided class removing shop name correctly (in your store). Something goes wrong with SEO feature in your prestashop. Im checkin your website now 1 Link to comment Share on other sites More sharing options...
Antakarana Posted November 23, 2012 Author Share Posted November 23, 2012 I've noticed that overrided class removing shop name correctly (in your store). Something goes wrong with SEO feature in your prestashop. Im checkin your website now Thanks for your quick answer... Tell me if you need backoffice acces or FTP Link to comment Share on other sites More sharing options...
vekia Posted November 23, 2012 Share Posted November 23, 2012 can you check header.tpl file in your template directory near the <title></title> tags? Can you put source of this section here? Link to comment Share on other sites More sharing options...
Antakarana Posted November 23, 2012 Author Share Posted November 23, 2012 this is from header.tpl at themes/warehouse template folder <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} Link to comment Share on other sites More sharing options...
vekia Posted November 23, 2012 Share Posted November 23, 2012 this is from header.tpl at themes/warehouse template folder ... so everything is ok here. Are you sure, that you created SEO for all of categories in your shop? It's really weird, something goes wrong with displaying it well and I don't exactly know what Link to comment Share on other sites More sharing options...
Antakarana Posted November 23, 2012 Author Share Posted November 23, 2012 so everything is ok here. Are you sure, that you created SEO for all of categories in your shop? It's really weird, something goes wrong with displaying it well and I don't exactly know what I'm completely sure about that... If you want I can get you access to my backoffice to check it by your self... Could it be a problem between the default header and the one from my template? cause I've opened the default heather file and the code is different. Link to comment Share on other sites More sharing options...
vekia Posted November 23, 2012 Share Posted November 23, 2012 the weirdest thing is that the description is displayed properly. Sure, i can check it, send me PM Link to comment Share on other sites More sharing options...
Antakarana Posted November 28, 2012 Author Share Posted November 28, 2012 Hi everybody... Vekia tried to help me but unfortunatlye he had no success... he could change some part of the code to show some info as metatitle, but this is only a temporaly trick, it's not a definetly solution. Does anybody have a similar issue? Also I would like to restore the original code without the modificiations of Vekia to start again finding a solution, the problem is that I don't know what he had changed and he don't answer my messages since last saturday (I suppose he is busy these days). Can anybody give me a hand? Thanks in advance! Link to comment Share on other sites More sharing options...
radomir Posted March 13, 2013 Share Posted March 13, 2013 Hello I have exactly same problem please anybody result this problem ? Antakarana I check your shop - its really nice - you are solved this issue ? Thank you for any information about it Link to comment Share on other sites More sharing options...
Antakarana Posted March 13, 2013 Author Share Posted March 13, 2013 Hello I have exactly same problem please anybody result this problem ? Antakarana I check your shop - its really nice - you are solved this issue ? Thank you for any information about it Thanks, I hope you enjoyed our shop About the issue, yes... I solved it, the problem is that I don't remember how I did it... But I think it was solved in on of the last Prestashop updates. Nowadays I'm using PS 1.5.3.1, wich version are you using in your shop? regards 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