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/” />
<?php
}
obviously I lost this code after wordpress or enfold update, right?
In private credentials.
Thanks.
Best regards.
Nunzio
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
Hi, I’ll try your advice.
Thank you Rikard.
Best Regards.
Nunzio