What's New
You must be logged in to reply to this topic.
Hi,
1. Modify the \themes\panda\templates\_partials\head.tpl, change the following code:
<link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
To
{if Tools::getValue('id_st_blog') && in_array(Tools::getValue('id_st_blog'), [1,2,3])}
<link rel="alternate" href="{$pageUrl}" hreflang="ja-jp">
{else}
<link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
{/if}
The number 1, 2, 3 is the blog article ID that you want to change the hreflang.
2. Add the following code to the same head.tpl file as point 1:
<meta http-equiv="content-language" content="{$language.language_code}">
Best regards.
Hi,
1/ it is working fine, thank you, is it possible to change it slightly so it applies to the whole category? It would therefore change the hreflang in each article published in that category (7).
2/I need the code
<meta http-equiv="content-language" content="{$language.language_code}">
to be added to whole website not just the blog. In blog, I will need to change it to ja-jp again in category 7.
Hi,
1. Please use the following code:
{if isset($blog) && $blog.id_st_blog_category_default == 7}
<link rel="alternate" href="{$pageUrl}" hreflang="ja-jp">
{else}
<link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
{/if}
2. Use the following code:
{if isset($blog) && $blog.id_st_blog_category_default == 7}
<meta http-equiv="content-language" content="ja-jp">
{else}
<meta http-equiv="content-language" content="{$language.language_code}">
{/if}
Best regards.
Hi,
I changed the file for you.
There is the Smarty cache, can’t select tag randomly.
Best regards.
Hello
How can I have my canonical link in the product page not including the combinaison id?
If you go on this page https://www.stellinox.eu/2260-marmite-inox.html the canonical URL in the source code is fine (https://www.stellinox.eu/2260-marmite-inox.html) but as soon as you select an option, it changes to include the option ID (ex : https://www.stellinox.eu/2260-1218-marmite-inox.html)
Can you help me to have the canonical of the product as the basic product URL (as in the product list) even when we have options?
Thanks
Hi,
There isn’t any metadata code for review on your 3rd party module, see my demo site: https://search.google.com/test/rich-results?id=e0Jv-4DWoPXB7VUUt_rhqQ, it is fine.
Best regards.
You must be logged in to reply to this topic.