Jump to content
Antakarana

How to change category page titles to improve SEO

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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
{

}

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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 by Antakarana (see edit history)

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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:

title.jpg

 

However in this other main category you can't see any title:

title2.jpg

 

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?? :wacko:

Share this post


Link to post
Share on other sites

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:

title.jpg

 

However in this other main category you can't see any title:

title2.jpg

 

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?? :wacko:

 

 

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

  • Like 1

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

can you check header.tpl file in your template directory near the <title></title> tags? Can you put source of this section here?

Share this post


Link to post
Share on other sites

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}

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

the weirdest thing is that the description is displayed properly.

 

Sure, i can check it, send me PM

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More