+ Reply to Thread
Results 1 to 4 of 4

Thread: Add the tag "hreflang" on the homepage

  1. #1

    Add the tag "hreflang" on the homepage

    I have added the tag "hreflang" on every page and it works OK but I have to add the label on the homepage too.

    You can add these tags?

    <link rel="alternate" hreflang="en" href="http://www.todogadget.net/en/" />
    <link rel="alternate" hreflang="es" href="http://www.todogadget.net/" />

    Thanks
    Regards

  2. #2
    I need to add this code into the pages:

    http://www.todogadget.net/
    http://www.todogadget.net/en/

    Thanks
    Regards

  3. #3
    Member
    Join Date
    Dec 2015
    Location
    USA
    Posts
    82
    But this code is already added by default in the system

    {if $languages|@count > 1}
    {foreach from=$languages item='lang_item'}
    {if $hreflang[$lang_item.Code]}
    <link rel="alternate" href="{$hreflang[$lang_item.Code]}" hreflang="{$lang_item.Code}" />
    {else}
    <link rel="alternate" href="{if $lang_url_home}{$lang_url_home}{else}{$smarty.cons t.RL_URL_HOME}{/if}{if $config.mod_rewrite}{$lang_item.dCode}{$pageLink|r eplace:'&':'&amp;'}{else}?language={$lang_item.Cod e}{/if}" hreflang="{$lang_item.Code}" />
    {/if}
    {/foreach}
    {/if}
    {if $rss && $pages.rss_feed}
    <link rel="alternate" type="application/rss+xml" title="{$rss.title}" href="{getRssUrl}" />
    {/if}

  4. #4
    Not bad, Vitalii Good job.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread