RankMath conflict with ESSB plugin

#6155
  • Resolved KasaRe
    Rank Math free

    Hi,

    I have installed RankMath on two of my sites on which I have the Easy Social Share plugin installed.

    When RankMath activated the ESSB doesn’t display share buttons depending on the position where they are placed. For example, it doesn’t show when share buttons are placed at the content bottom or as float from content top.

    It seems it only affects some positions but not all. When I deactivate RankMath all share buttons work fine no matter where placed.

    • This topic was modified 4 years, 11 months ago by KasaRe.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Hello,

    I could reproduce the issue on my setup with the ESSB plugin. The get_the_excerpt() function used in the Rank Math schema feature is conflicting with the ESSB plugin.
    I’ve forwarded this issue to our Development team, they will further debug the issue and fix it in the upcoming update.
    For now, to fix it on your site, I replaced the code on line 484 in seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php :

    replaced:
    'excerpt' => wp_strip_all_tags( get_the_excerpt(), true ),
    with:
    'excerpt' => Helper::replace_vars( '%excerpt%', $this->post ),

    The social icons are now showing in the posts.

    Hope that helps. Thank you.

    Thank you very much for your help. I confirm that now all is good. I have also applied a fix to my other site which also had an issue with ESSB and RankMath.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 16 through 18 (of 18 total)

The ticket ‘RankMath conflict with ESSB plugin’ is closed to new replies.