Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter alegenoa

    (@alegenoa)

    Problem solved!
    Many thanks, it seems that Google Search Console was just very slow in its assessing the effect of the corrections. They still marked a wrong tag 2 days ago, after a whole month…
    Anyway, I’ve also appreciated that the pagination issue was resolved with the latest plugin update.

    Thanks again!

    Thread Starter alegenoa

    (@alegenoa)

    Hi,
    the problem is that Google insists I’ve got a bunch of hreflang errors: http headers without return tag.

    On page 2 of the home, it still points to the generic home page, even after putting that code to fix it, as I said.

    <link rel="alternate" hreflang="en-US" href="http://blumudus.com/">
    <link rel="alternate" hreflang="it-IT" href="http://blumudus.it/">

    I plan to cache pages in the future, not for now. I’m behind Cloudflare free, so that html is not cached (and the problem isn’t going away even after a few days).

    Additionally, for some reason Google indicates further errors. After I corrected the setting, substituting the directory path by putting the domain: http://blumudus.com/about/ in place of the old http://blumudus.it/bluemood/about/ , well, the tags are correct,

    <link rel="alternate" hreflang="it-IT" href="http://blumudus.it/category/scienza-tecnologia/">
    <link rel="alternate" hreflang="en-US" href="http://blumudus.com/category/science-tech/">

    but Google insists on reporting a hreflang error on blumudus.com, with this indication:
    /category/science-tech/ corresponds to
    http://blumudus.it/category/scienza-tecnologia/

    I don’t know what to say…
    Thanks for your patience!

    Thread Starter alegenoa

    (@alegenoa)

    Ahem… I’m still here… I tried the solution proposed in the other topic https://wordpress.org/support/topic/hreflang-on-paginated-blog-pages/
    i.e.

    add_action( 'wp_loaded', function () {
    
    	if ( is_paged() ) {
    		add_filter( 'mlp_hreflang_html', '__return_empty_string' );
    		add_filter( 'mlp_hreflang_http_header', '__return_empty_string' );
    	}
    } );

    both with the “Code Snippets” plugin, and with a tentative inserting it directly in the functions.php, but the paginated pages still return the hreflang relative to the homepage.

    Am I the only one bothered by this? Google Webmaster tools seems to make a big deal of it.
    Anyway, I don’t understand how the code you suggested isn’t executed.

    Thread Starter alegenoa

    (@alegenoa)

    Strange, I got email notifications for some other topics in this forum, but I missed this reply… I assumed you had no answer for it. Yesterday I just solved the problem, now I come here and… voilà! You were pointing me to it 3 weeks ago! Stupid me!

    Of course, the problem was that in the netw. admin settings the directory was still indicated, instead of the .com pointing to it!

    For some reason Google was testing only some of the pages, thus creating the false impression that only part of them had problems!

    Thanks anyway!

Viewing 4 replies - 1 through 4 (of 4 total)