• I have disabled the homepage for the share buttons and they are not showing up BUT where they should be is a space. This is what is showing up in the code:

    
    <!-- AddThis Advanced Settings below via filter on wp_trim_excerpt --><br />
    <!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><br />
    <!-- AddThis Related Posts generic via filter on wp_trim_excerpt -->
    

    I can’t find where to remove those breaks and commented out items. Any suggestions??

Viewing 1 replies (of 1 total)
  • Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi 401kspec.

    Thanks for letting us know about your issue.

    There isn’t a way to disable these comments in this plugin, however, our Smart Layers by AddThis plugin has a way to remove all code from excerpts. Under Advanced Settings >> Loading Options >> Excerpt Filters, you can uncheck all the options. This will remove AddThis tools from all excerpts on your site, such as your homepage, archive pages and anywhere else your theme is asking for excerpts.

    The BR tags you’re seeing usually come from wpautop, though sometimes themes or other plugins will add them, too. Here’s a StackOverflow page on various ways people disable wpautop.

    Thanks,
    Julka

    • This reply was modified 7 years, 9 months ago by Julka Grodel.
Viewing 1 replies (of 1 total)
  • The topic ‘wp_trim_excerpt’ is closed to new replies.