Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #574361

    i did the search and found this from Yigit: https://kriesi.at/support/topic/hreflang-tags/

    add_action('wp_head', 'ava_add_your_stuff');
    function ava_add_your_stuff() {
        ?>
    <link rel="alternate" hreflang="es" href="http://es.example.com/" />
        <?php
    }

    but it didn’t work for me! no code was inserted. WPML placed two hreflang links on the language specific pages but i want to set the x-default link

    #574363

    can be closed – it worked – but firefox got the old version in the cache. Sorry

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘hreflang tag in head’ is closed to new replies.