Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hi @wpseiskaadmin,

    AMP does not allows the external social sharing buttons, that’s why you are getting this issue due to conflicts.
    Add this code in your themes functions.php file then you don’t have to deactivate that plugin.
    Code:
    function amp_endpoint_checker() {
    if( is_amp_endpoint() ) {
    remove_filter(‘the_content’,’ssb_in_content’);
    }
    }
    add_action(‘init’,’social_sharing_removal_code’, 9);
    function social_sharing_removal_code() {
    add_action(‘pre_amp_render_post’,’amp_endpoint_checker’);
    }

    I hope it helps.

    Regards,
    Team AMP

    Thread Starter mrboats

    (@wpseiskaadmin)

    Brilliant, thanks!

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @wpseiskaadmin,

    Thank you for your valuable feedback and support.

    We will add this compatibility in our next updates also, then you don’t have to write this code by yourself again.(ref).

    If you like our plugin and its support, please give us a positive feedback which will help us to grow more.

    Thanks ??

    Regards,
    Team AMP

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Social Share Boost buttons create big gap’ is closed to new replies.