hreflang tag for english site only

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
peaceandlove
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Wed Jul 08, 2009 12:40 pm

hreflang tag for english site only

Post by peaceandlove » Tue Oct 01, 2019 4:38 am

My SEO guy want me to put this code

Code: Select all

<link rel="alternate" hrelflang=en-ca">
basically want to add english and canada

i am not sure how to put that code and where to put that code

my site is only in english language
Last edited by imanickam on Tue Oct 01, 2019 6:41 am, edited 1 time in total.
Reason: Moved the topic from the forum General Questions/New to Joomla! 3.x to the forum Languages for Joomla! 3.x

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27274
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: hreflang tag for english site only

Post by imanickam » Tue Oct 01, 2019 5:43 am

Review of the topic viewtopic.php?t=963456 would be of help.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

peaceandlove
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Wed Jul 08, 2009 12:40 pm

Re: hreflang tag for english site only

Post by peaceandlove » Tue Oct 01, 2019 9:16 am

I study the post, it recommend to use system plugin where i can define GB as lanaguate but how i can define CA as country?

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27274
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: hreflang tag for english site only

Post by imanickam » Tue Oct 01, 2019 2:13 pm

Try the following:

- Go to the screen Plugins (Extensions => Plugins)
- Enable the plugin"System - Language Code"
- Once the plugin is Enabled, open the plugin for Edit
- Now you would see the tab titled "Language Codes", click on the tab; Now you would see the language en-GB listed
- Opposite to the language en-GB, enter the value en-CA and save the value

peaceandlove wrote:
Tue Oct 01, 2019 9:16 am
where i can define GB as lanaguate but how i can define CA as country?
Be known that the language code for English is "en" - NOT GB; GB is the country code;


Another way, to handle this situation, instead of using the plugin "System - Language Code", you could install the language pack English (Canada) and make this language as the Default Site Language.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

peaceandlove
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Wed Jul 08, 2009 12:40 pm

Re: hreflang tag for english site only

Post by peaceandlove » Wed Oct 02, 2019 1:03 pm

OK, Thanks for clarification
en-CA.png
Hope its correct
You do not have the required permissions to view the files attached to this post.

User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1429
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

Re: hreflang tag for english site only

Post by darb » Thu Oct 03, 2019 8:00 pm

Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!

Darb - aka ssnobben


Post Reply

Return to “Language - Joomla! 3.x”