Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same issue.

    I use a widget to display an RSS feed of comments, so Yoast SEO decided to add noindex in between <head></head>. Since even the code added to function.php did not roll back the problem, my only fix was to disable Yoast SEO and move on to another plug-in.

    • This reply was modified 6 years, 2 months ago by lokisatyn.
    Thread Starter lokisatyn

    (@lokisatyn)

    Hello,

    Thank you for your answer! But please forgive me but I am not very code literate and I did not understand what to do with your reply.

    What I did:
    – updated Disqus Latest Comments Addon
    – copy-pasted your code in functions.php to try it out, just replaced https://www.sitename.com/fr/ with my url
    What happened:
    – the website stopped working until I reverted functions.php

    Also, is there a way to skip threads that do start with $query?
    The aim would be to display the English thread only by eliminating the French thread (English is just https://www.sitename.com without /en/ or /fr/ in the end, so I am afraid that using https://www.sitename.com as $query would still display both languages).

    Something else I am not sure to understand, is if I had activated your code then the plugin Disqus Latest Comments would only display the filtered thread on the whole site? Because as I mentioned earlier, this is not a multisite with two separate installations of WordPress. Both English and French exist on the same site. What I am trying to do is:

    – Widget on English pages to show English Disqus thread/latest comments.
    – Widget on French pages to show French Disqus thread/latest comments.

    Polylang lets me choose if a Widget is seen on the French pages or the English pages.

    I hope this clarifies what I am looking for, and once again I apologize if I missed something obvious in your reply or screwed up the application.

    Thread Starter lokisatyn

    (@lokisatyn)

    Not a multi-site, just different urls at the end -> sitename.com/en/ and sitename.com/fr/
    (Except that /en/ does not need to be added since it’s the default language)

    I tried registering a new Disqus site with sitename.com/fr/, but Disqus only wants to register the domain sitename.com, thus the same for both my languages.

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