Jump to content

Modifier code de langue hreflang


Lynda
 Share

Recommended Posts

Bonjour,

Je souhaiterais remplacer le code hreflang de la version anglaise de ma boutique en-us par en. J'ai trouvé le code ci-dessous dans le fichier head.tpl, mais je n'y comprends pas grand chose. Où se trouve le "{$code}" ?

  {block name='head_hreflang'}  
  {foreach from=$urls.alternative_langs item=pageUrl key=code}
    <link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
  {/foreach}
  {/block}

Merci pour votre aide.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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