-
AuthorPosts
-
June 9, 2015 at 12:04 pm #297080
Hello
I have an Arabic website haloinsight.com
I noticed google recommends adding hreflang to improve SEOhow can I implement this in the theme?
I want it to target this langauge ar-sa
I am using a childtheme
regards
hilalJune 10, 2015 at 3:36 am #297737Hi Hilal,
To do that, you can add the code below in your child theme’s functions.php file.
function my_custom_head_output() { ?> <link rel="alternate" hreflang="ar-sa" href="http://haloinsight.com" /> <?php } add_action( 'wp_head', 'my_custom_head_output', 99999 );
Hope that helps.
November 26, 2015 at 11:19 am #680364hi there,
i have applied the hreflang=”en” to my child theme functions.php file. when i check the search console it still says that my site has no hreflang tags. does search console take time till it updates?
and to what exactly does the “99999” refer to in the code?
thanks for your support!
November 26, 2015 at 12:44 pm #680431Hi @indiavidual,
Thanks for writing in! To assist you with this, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you.
In regard to ‘99999’ from the code, this is the priority of the filter. You can find more about it in WordPress add_filter() function reference.
Thanks!
November 27, 2015 at 6:40 am #681150This reply has been marked as private.November 27, 2015 at 8:38 am #681244Hi there,
Thanks for writing back, I’ve tried to login, but I get an invalid password error, could you double check the provided details please?
Also if you could supply FTP details in addition to the WP login details.
Thank you!
December 1, 2015 at 11:00 am #686312This reply has been marked as private.December 1, 2015 at 4:00 pm #686910Hi there,
Thanks for the details.
I have tried to login to your admin section but the password still isn’t working. Kindly check it again. Also, would you mind temporarily switching the language of your admin section to English so that it would be easier for us to check?
As for the FTP details, please provide us with the host name.
Cornerstone 1.0.9 was just released which should address the issue you have mentioned. Kindly do an update to the latest version.
Let us know how it goes.
December 2, 2015 at 3:24 am #687638cornerstone now works with the new update to 1.0.9 thanks
my admin section and the whole site setup is in English (US). not sure what site you are getting.
also did i change the PW for it again. will send a private message with it + the host name
thanks
December 2, 2015 at 3:52 am #687693This reply has been marked as private.December 2, 2015 at 3:55 am #687698fyi i just checked with “search console” and the hreflang tags are showing. i guess it took some time for google. thanks for your support!
December 2, 2015 at 5:21 am #687871You’re welcome! 🙂
-
AuthorPosts