Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #756412

    Hi, just want to know if is a good choise set up hreflang site for google search console with this code added in functions.php (I have a one language site for now):

    add_action(‘wp_head’, ‘ava_add_your_stuff’);
    function ava_add_your_stuff() {
    ?>
    <link rel=”alternate” hreflang=”it” href=”https://xxxxxxxx.it/&#8221; />
    <?php
    }

    obviously I lost this code after wordpress or enfold update, right?
    In private credentials.
    Thanks.
    Best regards.
    Nunzio

    • This topic was modified 7 years, 9 months ago by nuncer.
    #756944

    Hey nuncer,

    You shouldn’t lose that if you are using a child theme? If not then please refer to this: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/.

    You can then add the snippet you posted to your functions.php file.

    Best regards,
    Rikard

    #758036

    Hi, I’ll try your advice.
    Thank you Rikard.
    Best Regards.
    Nunzio

    #758703

    Hi Nunzio,

    Great, please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.