Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support dinamiko

    (@dinamiko)

    Hi csigncsign,

    I′m not sure why the tool marks no hreflang in MultilingualPress site (I need more time to understand why), but if you look at the source code of the page you will see that hreflang is added inside head like so:

    <link rel="alternate" hreflang="en-US" href="https://multilingualpress.org/"><link rel="alternate" hreflang="de-DE" href="https://multilingualpress.de/">

    Cheers,
    Emili

    • This reply was modified 7 years ago by dinamiko.
    • This reply was modified 7 years ago by dinamiko.
    Thread Starter BeeCee

    (@csigncsign)

    okay, I see – but what at my multisite the plugin does not add hreflang automatically?

    Thread Starter BeeCee

    (@csigncsign)

    For some reason it shows now my hreflang, thanks.

    I have the same problem. Multisite with the subdirectories and no hreflang in the code and I see in Google Console, that no language was detected.
    The main site is lunacup.eu and the other language eg.: lunacup.eu/sk/ or lunacup.eu/pl/.

    Could you help to solve this?

    Plugin Support dinamiko

    (@dinamiko)

    Hi @oldrich333,

    I′m not sure why hreflang links does not appear here… are you using full page cache in the server? like Varnish or similar?

    If so, try to deactivate it temporally to see if it makes any effect and let me know.

    Cheers,
    Emili

    Yes, I have webpage on CloudWays and using Varnish and Memcached and W3 Total Cache.
    But if I deactivet W3 Total Cache and Varnish on server nothing change.

    Cheers,
    Oldrich

    Emili,

    not response from you, the hreflang still missing…

    Plugin Support dinamiko

    (@dinamiko)

    Hi @oldrich333,

    Can you try to change redirection to JavaScript to see if it does any effect?
    to do so you need to create a plugin and activate it, here is the code for creating the plugin:

    <?php
    /**
     * Plugin Name: Enable JavaScript redirection type.
     */
    add_filter('multilingualpress.redirector_type', function() {
    	return 'JAVASCRIPT';
    });

    Thanks,
    Emili

    Hi,

    I create a Plugin and Network activate but I have to deactived immedietly because my subsite was redirected back to main site with this address:
    https://lunacup.eu/?noredirect=cs_CZ.

    Does it help?

    Oh, it was automatic redirection that started to work. I disable it.
    But still do not see any hreflangs in the source code…

    But the plugin is now active.

    • This reply was modified 6 years, 10 months ago by oldrich333.

    Any thougts on this?

    Plugin Support dinamiko

    (@dinamiko)

    Hi oldrich333, sorry for the delay in the response,

    Is difficult for me to know the root of the problem without properly debugging your WordPress installation, what I can recommend you to do is buy a MultilingualPress Premium Support License, that way we can provide you premium support in order to find the root of the problem.

    Thanks,
    Emili

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘hreflang is not added’ is closed to new replies.