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
    */?>
    Thread Starter perler

    (@perler)

    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)

    (@otto42)

    www.remarpro.com Admin

    if (is_page('contact')) {
    ... do stuff ...
    }
    Thread Starter perler

    (@perler)

    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:

    https://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.