WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Like and Share Buttons showing up where they're not supposed to.

[Resolved] Like and Share Buttons showing up where they're not supposed to.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author JS Morisset

    @jsmoriss

    That doesn’t look like an excerpt – the buttons show they’re being added to the content, not the excerpt. Those are two different sets of filters under WordPress.

    <!-- ngfb content-buttons begin --><div class="ngfb-content-buttons"><div class="ngfb-buttons"><!-- Facebook Like / Send Button(s) --><div class="fb-like facebook-button" id="facebook-content-buttons facebook-content-buttons-post-3390"><fb:like href="http://fundamentaldesigns.us/?page_id=3390" send="true" layout="button_count" show_faces="false" font="arial" action="like" colorscheme="light"></fb:like></div><!-- GooglePlus Button --><div class="gplusone-button" id="gplusone-content-buttons gplusone-content-buttons-post-3390"><span class="g-plusone" data-size="medium" data-annotation="bubble" data-href="http://fundamentaldesigns.us/?page_id=3390"></span></div></div></div><!-- ngfb content-buttons end -->

    Either uncheck the addition of buttons to the content, or use the real WordPress excerpt.

    You could also disable the buttons on specific Posts / Pages, but that’s a Pro version feature.

    js.

    But if I uncheck addition of buttons to the content then they don’t show up on any pages. Is there an option I’m missing? Also am I correct in assuming the buttons are being added directly after the div with class “pf-content”? That seems to be whats happening.

    Plugin Author JS Morisset

    @jsmoriss

    You have chosen to add buttons to the content text. This is what the plugin is doing.

    You also have another plugin adding the content of multiple posts/pages as a list. That post content includes the buttons, because this is what you’ve chosen.

    Both plugins appear to be working correctly.

    js.

    Okay that makes sense. So can I use your plugin to only add the buttons to the bottom of each page and not in the content text itself?

    Plugin Author JS Morisset

    @jsmoriss

    You could use a widget, the function, or the sidebar style.

    js.

    okay I figured it out. Nothing to do with your plugin. The other plugin I was using (which has the option to get the context or the excerpt) was getting the post then formatting it as context even the excerpt… No idea why you would do that but simply changing that in the plugins code fixed my problem. Thank you for your help.

    What was the other plug in? I’m seeing pf-content in my code and have no idea where this is coming from.

    Thanks.

    http://wordpress.org/plugins/post-content-shortcodes/

    As mentioned in my first post. Hope that helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Like and Share Buttons showing up where they're not supposed to.’ is closed to new replies.