• After activating this plugin all OpenGraph metatags are being moved very low on head so it’s not being recognized by crawlers. I suggest to move all styles being created after all other tags in head section. It’s possible to fix this issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fidoboy

    (@fidoboy)

    This plugin should insert all his code at the very bottom of the head section, not before all the main tags. Because also it’s not using the standard wp_head function with priorities, like other plugins. So future versions should have at least an option to let the user choose if he wants to put the CSS code at the bottom of head section.

    Could you fix this, please?

    • This reply was modified 2 years, 8 months ago by fidoboy.
    Plugin Author asadkn

    (@asadkn)

    Can you mention which OpenGraph plugin are you using?

    The way Debloat works is that it doesn’t re-arrange anything. That’s the beauty of it. It leaves things in the position they were at. If the asset was enqueued at a certain position, the inline / optimized version is also inserted at that same position.

    If the OpenGraph plugin inserts the meta tags above the script/style, they will stay above.

    Thread Starter fidoboy

    (@fidoboy)

    Yes, but this is a problem, not a beauty. I’ll try to explain it.

    The data crawlers like in Facebook, Twitter, etc, only retrieve the first portion of a page, so if metatags are very far from the beggining of the head section, they fail (some have different limits to retrieve and wait).

    In other hand, when you say that your plugin respect the order, you are forgiving that before the replacements, all stuff that was there were CSS file references, that is, a shorter strings with less bytes. So, when a CSS file link is replaced with inline contents, the amount of bytes into the HTML file is bigger, and that’s why the OpenGraph scrappers fails having the same order into the head section.

    The solution is very easy: put an option in your plugin (a checkbox, to make it optional) to move all the CSS, JS and inline definitions to bottom. That way the OpenGraph metas and other main metatags will remain at the very top, allowing bots and scrappers to work better.

    I hope that now you could understand the idea. That’s why after using this plugin, bots and scrappers that was working before are stopping to do the same after that.

    • This reply was modified 2 years, 8 months ago by fidoboy.
    • This reply was modified 2 years, 8 months ago by fidoboy.
    • This reply was modified 2 years, 8 months ago by fidoboy.
    Thread Starter fidoboy

    (@fidoboy)

    To answer your question, the plugin I’m using is this: Open Graph and Twitter Card Tags

    But with Yoast SEO happens the same thing.

    I’m having the same problem. @fidoboy Did you find a solution?

    When I try and share a link on whatsapp there is no image thumbnail preview. When I disable debloat it works fine, and I can literally see this in the html code before the social meta tags (og):
    <style id=’debloat-07de2302f4b9fda3041fcbb36a198933′>…

    @asadkn Is there an option to push the debloat style to the bottom of the header or at least after the social meta tags?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘OpenGraph not working after using this plugin’ is closed to new replies.