• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

hreflang is not working

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › hreflang is not working

This topic is: not resolved

Tagged: hreflang

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by jrubem.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 21, 2016 at 5:15 am #197935
    jrubem
    Participant

    Hi there,
    I ´m using studiopress eleven40 pro theme. I have I'm not able to properly deploy the hreflang tag. I really need your help. See the screenshot:

    https://www.dropbox.com/s/pegt5etjwvlxho3/HREFLANG%202.JPG?dl=0
    https://www.dropbox.com/s/eswgbbodiomphj7/HREFLANG%201.JPG?dl=0

    Besides the header scripts is there any other place where I can put the hreflang tag?
    Thank you

    http://www.jacksonrubem.com.br
    December 21, 2016 at 8:10 am #197946
    Victor Font
    Moderator

    You're generating the hreflang tag incorrectly. the proper tag for your site should look like this:

    <link rel="alternate" href="http://www.jacksonrubem.com.br" hreflang="pt-br" />

    This tool may help you: http://www.aleydasolis.com/en/international-seo-tools/hreflang-tags-generator/.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 21, 2016 at 8:57 am #197948
    jrubem
    Participant

    Hi Victor. Thanks for your response.
    But to generate the hreflang I had just used the link you indicated. The problem is that I do not know where to put it in the eleven40 theme. I used the header script but it did not work. See ins screenshot that the tag I put is the same one you showed.
    https://www.dropbox.com/s/pegt5etjwvlxho3/HREFLANG%202.JPG?dl=0
    Note: I had used it at the end <br /> and it did not work. Then I just used <pt>. It also does not work.

    December 21, 2016 at 2:18 pm #197958
    Victor Font
    Moderator

    It's supposed to go in the header. What do you mean when you say it isn't working? This is what I see in your source code.

    <link rel="alternate" href="http://www.jacksonrubem.com.br" hreflang="pt" />

    The Google bar comes right up and says "View this page in English" Translate, and Turn off Portuguese. Google is definitely reading the tag. Clear all of your caches, you might be looking at old content. Adding scripts to the header area won't automatically update your caches.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 21, 2016 at 3:01 pm #197963
    jrubem
    Participant

    Hi Victor,
    Please see this image:
    https://www.dropbox.com/s/eswgbbodiomphj7/HREFLANG%201.JPG?dl=0
    You'll see that there are 180 hreflang tags in my blog and 164 tags are in error.
    Thanks again for trying to solve my problem.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble