WordPress.org

Forums

NextGEN Facebook - Advanced Social SEO for Facebook, Google+, Pinterest, Twitter & More
[resolved] Like and Share Buttons showing up where they're not supposed to. (9 posts)

  1. pleek
    Member
    Posted 1 year ago #

    I love this plugin but I've run into a problem. I'm using this plugin to preview posts on other pages.

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

    Everything is working great except sometimes when I use a post content shortcode to show an excerpt of a post on a page the social buttons show up under the excerpt. How can I stop them from showing up?

    Example: http://fundamentaldesigns.us/test-3/

    https://wordpress.org/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. pleek
    Member
    Posted 1 year ago #

    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.

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. pleek
    Member
    Posted 1 year ago #

    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?

  6. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

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

    js.

  7. pleek
    Member
    Posted 1 year ago #

    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.

  8. robgnyc
    Member
    Posted 1 year ago #

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

    Thanks.

  9. pleek
    Member
    Posted 1 year ago #

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

    As mentioned in my first post. Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.