WordPress.org

Support

Support » Plugins and Hacks » Simple Facebook Connect » [Plugin: Simple Facebook Connect] shortcode for excluding like button

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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
    */?>

    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?

    if (is_page('contact')) {
    ... do stuff ...
    }

    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/

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.
Skip to toolbar