Title: [Plugin: Simple Facebook Connect] shortcode for excluding like button
Last modified: August 20, 2016

---

# [Plugin: Simple Facebook Connect] shortcode for excluding like button

 *  [perler](https://wordpress.org/support/users/perler/)
 * (@perler)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/)
 * hi,
 * is there a short code to explicitly exclude the like button from one particular
   page?
 * PAT
 * [http://wordpress.org/extend/plugins/simple-facebook-connect/](http://wordpress.org/extend/plugins/simple-facebook-connect/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Iamhere](https://wordpress.org/support/users/iamhere/)
 * (@iamhere)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/#post-2691968)
 * Here is the code to add to your page template
 *     ```
       <?php 
   
       // prevent facebook like buttons on this page
       remove_filter('the_content', 'sfc_like_button_automatic', 30);
   
       get_header(); 
   
       /*
       Template Name: Contact Us
       */?>
       ```
   
 *  Thread Starter [perler](https://wordpress.org/support/users/perler/)
 * (@perler)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/#post-2691975)
 * we don’t use a special template for the contact us page – so we need to put this
   code somewhere on this very page only – is there a way?
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/#post-2691976)
 *     ```
       if (is_page('contact')) {
       ... do stuff ...
       }
       ```
   
 *  Thread Starter [perler](https://wordpress.org/support/users/perler/)
 * (@perler)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/#post-2691977)
 * mh.. I inserted this into page.php
 *     ```
       if (is_page('contact')) {
       remove_filter('the_content', 'sfc_like_button_automatic', 30);
       }
   
       get_header(); ?>
       ```
   
 * but the fb like button is still there:
 * [http://blendermantheband.com/contact/](http://blendermantheband.com/contact/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Simple Facebook Connect] shortcode for excluding like button’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-facebook-connect_a9b9c1.svg)
 * [Simple Facebook Connect](https://wordpress.org/plugins/simple-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-facebook-connect/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [perler](https://wordpress.org/support/users/perler/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-shortcode-for-excluding-like-button/#post-2691977)
 * Status: not resolved