What's New
- AuthorPosts
Hi,
I noticed there are some serious SEO issues most likely related to the core but should be fixed by the theme.1/ wrong link canonical on pagination –
http://www.testshop.com/category?page=2 since it is page 2, the canonical link should point to:
https://www.testshop.com/category
however it is wrong and the canonical link is:
href="https://www.testshop.com/category?page=2"
RESULT: DUPLICATE CONTENTTested on my other PrestaShop installation without Panda theme and it is working correctly with correct canonical. How can we fix it and have correct canonical?
2/ DUPLICATE CONTENT ON SEARCH
Every search page indexed by Google will have same META TITLE and META DESCRIPTION thus again penalization for duplicate content.
For example page:
http://www.testshop.com/search?s=product+blue
will have identical description and title as
http://www.testshop.com/search?s=product+white
http://www.testshop.com/search?s=product+green
etc, etc
The reason is that link canonical is missing completely. Is it possible to add link canonical to search?
3/ missing H1 heading on product comparison
I guess that in order to improve SEO, the following has to be done:
a/ if there are no products to compare, a title is missing and we only have a warning message. How can we have the title displayed at all times and the warning message (if no products) below?
b/ the title is with H3 heading, how can we change to H1?Hi,
The 1 & 2 are due to Prestashop core code:
1. I modified the /controllers/front/listing/CategoryController.php file, added the code: “$params = [];”,see category.png
2. I modified the /classes/Meta.php file, added the following code:elseif ($pageName == 'search' && ($s = Tools::getValue('s'))) { $metas = Meta::getHomeMetas($idLang, $pageName); $metas['meta_title'] .= ' - ' . ($s ? $s : Tools::getValue('tag')); return $metas; }
See attached screenshot. please make theose files backup. after you upgrade Prestashop, you need to modify them by yourself.
3. Please modify the \modules\stcompare\views\templates\front\list.tpl file, change the h3 to h1, see attached screenshot. I will include it in the next update.
Best regards.Attachments:
Hi,
1. works fine
2. I see no canonical and when I search, it will return this URL:
image1.originalabsinthe.com/search?controller=search&s=absinthe+spoon
when I perform different search:
image1.originalabsinthe.com/search?controller=search&s=bottle+absinthe
it will return different URL but both URLs will still have the same META DESCRIPTION. I can see that you have appended search words to TITLE (good idea), however if there are more pages, such as:
image1.originalabsinthe.com/search?controller=search&s=absinthe+spoon&page=2
the second and all following pages will have same TITLE and DESCRIPTION
3. It will take care of H1 but we need the title to be visible even if there are no products to compare because Google will index the URL empty, without productsHi,
2. Please use the following code instead:elseif ($pageName == 'search' && ($s = Tools::getValue('s'))) { $metas = Meta::getHomeMetas($idLang, $pageName); $metas['meta_title'] .= ' - ' . ($s ? $s : Tools::getValue('tag')); $metas['meta_description'] .= ' - ' . ($s ? $s : Tools::getValue('tag')); return $metas; }
3. Modify that .tpl file, move the line 29 before line 28.
Best regards.Hi,
2. much better solution, however it still leaves &page=2, &page=3 etc. with the same META because there is no canonical
3. works fine, please include both changes into the next release, as it is more SEO friendly.
Please also have a look at my other post since 3 days ago as it is also SEO related.Hi,
2. Please modify the \controllers\front\listing\SearchController.php file, add the following code:public function getCanonicalURL() { return $this->context->link->getPageLink('search'); }
See attached screenshot. don’t forget making all changes backup. if you upgrade Prestashop, you need to do them again.
3. Okay. I will include it.
Best regards.Attachments:
Hi,
1. Modify the \controllers\front\listing\BestSalesController.php file, add the following code:public function getCanonicalURL() { return $this->context->link->getPageLink('bestsales'); }
2. It seems the category description on the top of list? it requries to modify the \themes\transformer\templates\catalog\listing\best-sales.tpl file, see screenshot.
Best regards.Attachments:
1. It works, thank you, the code has to be
public function getCanonicalURL() { return $this->context->link->getPageLink('best-sales'); }
2. It will work but it will cause the h1 page heading to dissapear, see our test server for details. Is it not possible to edit the file and use Advanced custom content for example to enter the text? Future idea perhaps?
Hi,
there are couple more issues that we need to sort out if possible:
1/ the sitemap.tpl file in /themes/panda/templates/cms how can I change this line
{block name='page_title'}{l s='Sitemap' d='Shop.Theme.Global'}{/block}
to display h1 page title instead of currently displayed h3?
<h3 class="page_heading">Sitemap</h3>
2/ how can I add canonical to login? Because any redirect page to login will have duplicate META, such as this:login?redirect=module&module=ps_emailalerts&action=account
- AuthorPosts
You must be logged in to reply to this topic.