WordPress.org

Forums

Simple Facebook Connect
How do I disable the Like button on a page? (3 posts)

  1. ttj90
    Member
    Posted 3 years ago #

    How do,

    I've the plugin activated and I have the like button in use before and after the content.

    On one of my pages the buttons are displayed but on that particular one, i don't want them to be. I say buttons because I also have the twitter connect plugin in operation as well.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. rosenzweig70
    Member
    Posted 3 years ago #

    I have a similar issue. I want that like button only on posts... not on pages. Now they're just everywhere. I'll be watching htis thread!

  3. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    If it's a specific page and you're using a custom Page Template for that page, then the easiest way is to add this to the top of the page template (before the get_header() call):

    remove_filter('the_content', 'sfc_like_button_automatic', 30);

    If you want to remove it on all pages, then adding similar code in the page.php file in the theme would do the trick.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic