WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Open graph description shows SimpleReach Slide code after Jetpack update (10 posts)

  1. MainThink
    Member
    Posted 1 year ago #

    After updating to the latest version, the open graph description meta tag is broken when The Slide by SimpleReach is active.

    This is nicely verified thanks to the Facebook Object Debugger for example.

    The remove_action('wp_head', 'jetpack_og_tags'); trick didn't help, of course it removed all og tags from the page but the problem persists.
    As confirmed again by the Facebook Debugger.

    Any idea why that happens? I have no clue.

    "Disable the Slide plugin" is not really an answer, is it? :-)

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    When checking your site's Open Graph meta tags, do you see any duplicates?

    Does SimpleReach Slide add some Open Graph tags that might be broken by a conflict with Jetpack maybe?

    Could you post your site URL here, so I can try to understand the issue?

    Thanks!

  3. MainThink
    Member
    Posted 1 year ago #

    Hello Jeremy, no duplicates.

    In fact, I was actually happy to see Jetpack add some nice og: tags in the code, because I don't use any SEO plugins and there were no open graph tags at all.
    I have google analytics for wordpress by yoast, however.

    Slide adds a <script> portion of code and I have no clue as to why that code ends up in the 'description' tag.

    At the moment the slide plugin is disabled, jetpack of course is enabled.
    Here's a random article from the website:
    http://www.techarena.it/2012/11/30/nuovo-mouse-da-gaming-razer-orochi-sensore-potente-e-massima-autonomia/

    I'll enable slide right now for a couple of hours so you can have a look in the source code and see the <script> code ending up in the og:description tag somehow.

    Thanks, at this point I'm more curious to understand than anything else eheheh

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks! That seems to be a conflict between the 2 plugins. We'll investigate further and I'll keep you posted!

    In the meantime, could you try to fill in the "Excerpt" module that appears right under the Post editor in your dashboard, and let me know if that helps?

  5. MainThink
    Member
    Posted 1 year ago #

    Your hunch was right :-)

    If an excerpt is manually specified, the og:description field shows that.
    Is that behaviour default for my theme or is it a wordpress thing?
    I was under the impression that an automatic excerpt was created.

    I can use that as a workaround, maybe copy/paste the subtitle for every new article...

    thank you very much for the time you dedicated to me, Jeremy!

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    It's a default WordPress behaviour.

    Jetpack creates the og:description tag from your post's excerpt.

    WordPress gets the excerpt from the module in your post editor. However, if you didn't fill in that field, WordPress will build its own excerpt from the first few words from your post.
    That's where the problem happens: the SimpleReach Slide plugin adds some Javascript code right before your post content, and it seems that this code is grabbed by WordPress and added to the excerpt.

  7. MainThink
    Member
    Posted 1 year ago #

    Gosh I didn't notice that it was right before the post content!

    Is the position where a plugin puts its code something I can have a say on?

    Moving it after the post content would be a simple and definitive fix.

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    There are different ways to solve this issue:

    • The plugin author could make changes to include the Javascript code somewhere else on the page, if that can be done without breaking the plugin's behaviour.
    • WordPress might be improved to do a better job at filtering out all Javascript code from the excerpt.
    • Jetpack might be improved to filter out this code.

    Could you try to contact the SimpleReach Slide plugin author here, and warn them about the issue?

  9. MainThink
    Member
    Posted 1 year ago #

    Honestly, point number two is the most sensible one, I think.

    I will undoubtedly explain the issue to the SimpleReach people, thanks again for all the effort Jeremy I really appreciate it!

    This definitely gets a 'mark as resolved' clic :-)

  10. Zee Que
    Member
    Posted 1 year ago #

    I am having an issue here with simplereach. it just popup at the start of the post.. Guys please help me out... my weblink

    kindly open any post you will see that slider comes very early or at the start of the post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic