• # Env
    AddThis Sharing Buttons 5.0.7 (Latest)
    Wordpress 4.2.2

    # Problem
    When looking at a list of blog posts
    The content preview shows HTML code of AddThis injected div like:
    `
    <div class=’at-above-post-homepage addthis_default_style addthis_toolbox at-wordpress-hide’ data-title=
    `

    # How to reproduce
    – Create a post
    – Set “AddThis Sharing Buttons” for that post to “On”

    https://www.ads-software.com/plugins/addthis/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor AddThis_Elsa

    (@addthis_elsa)

    Hi there,

    I am Elsa from AddThis support team. This might be a theme conflict. Do you mind sending over your theme to [email protected] so we could install it on a sample WordPress blog to see what’s happening? Also let us know what are the other plugins you’ve installed with the theme?

    Thanks,
    Elsa.

    Hi there,

    Below are the theme and active plugins we use, I’ve also emailed this to the email address indicated.

    Theme: MH Magazine Lite

    Active plugins:

    Absolute-to-Relative URLS
    Select AddThis Sharing Buttons
    Google Analytics by Yoast
    Google Tag Manager for WordPress
    Jetpack by WordPress.com
    MailChimp for WordPress Lite
    Rss Post importer
    Schema creator by Raven
    Share Buttons by AddToAny
    SiteOrigin Widgets Bundle
    W3 Total Cache
    Wordpress Editorial Calendar
    Wordpress SEO
    WP-HTML-Compression
    WP Google Analytics Events
    WP Htaccess Editor
    WP Smush
    WPSocialite

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hello Pikachu & Sarah,

    Pikachu: As Elsa mentioned, we need more information from you in order to troubleshoot your issue.

    Sarah: I took a look at MH Magazine Lite. Because of the non-standard way this theme accesses excerpts, there’s nothing we can do with our plugin to get sharing buttons showing up on excerpts with this theme. I’ve submitted a patch to bring the theme more in line with the standard ways of manipulating excerpts with the theme authors here: https://www.ads-software.com/support/topic/incompatibility-with-addthis-sharing-buttons-plugin

    If you’re comfortable applying patches, you can get this patch for the theme here: https://www.dropbox.com/s/ye1auiokhgpr0ms/20150630_wp_theme_mh-magazine-lite.patch?dl=0

    If you haven’t made customizations to your theme, you can get the entire theme with my changes here: https://www.dropbox.com/s/au8uv3swtin1sey/20150630_wp_theme_mh-magazine-lite.zip?dl=0

    The only other solution I can suggest to you at this time is to disable sharing buttons on excerpts. With the way this theme is written, there’s nothing we can do on the plugin end to work around how they’re accessing excerpts.

    To disable sharing buttons on excerpts:

    If you’re in WordPress mode for the AddThis Sharing Buttons plugin, you can disable sharing buttons on excerpts in the plugin’s settings. Each button location has an options tab where you can select what templates will have sharing buttons. Uncheck excerpts for both sharing buttons above and below content and save your changes.

    If you’re in AddThis mode for the AddThis Sharing Buttons plugin, you can do this at AddThis.com. From your AddThis.com Dashboard, select the sharing buttons you have enabled and unselect the excerpt options.

    Thanks

    Hi Julka,

    Thanks for looking into this – how do I apply a patch to my current theme? Any wordpress tutorial on this?

    Regards,

    Sarah

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Sarah.

    If you’re not already comfortable with patches and doing your own coding, I do not recommend using a patch. It’s a developer thing and if there are any customizations to your theme, then you might end up with conflicts that have to be hand resolved when applying a patch (and that might bring your site down in the meantime).

    I recommend grabbing the zip with the full theme instead.

    Alternately, if you’re feeling adventurous, you can open up the patch in a text editor (it’s just a plain text file) and see that changes it attempts to make, then apply them by hand.

    Also, a heads up: I’m working with MH Magazine Lite on a different fix for this that respects their attempts to limit excerpts by characters instead of words. I’ll update here when we have something.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AddThis injected div shows up in post preview’ is closed to new replies.