Simple Facebook Connect
[resolved] Errors Using Facebook Like Button Shortcode (3 posts)

  1. DivaVocals
    Posted 4 years ago #

    Okay I followed the instructions here:

    and was able to remove the like button from a specific page. However it's not resolving the conflict with the "Theme My Login". (a MINOR conflict that only occurs when one logs out) So it occurred to me the easiest solution is to simply call the like button short code manually in my page template and then create a custom template for my login page which omits this call.

    Here's the issue:
    I added this to my template's page.php file
    <?php sfc_like_button(); ?>

    and got the following error:

    Fatal error: Call to undefined function sfc_like_button() in /home2/overthe4/public_html/clientYourPlateOrMineInc/wp-content/themes/ypom_custom/page.php on line 70

    What did I miss??

  2. DivaVocals
    Posted 4 years ago #

    Need to add that in addition to the error, no matter where I put the code, it knocks out my sidebars..

  3. DivaVocals
    Posted 4 years ago #

    So installing the new beta version of SFC seems to have solved the problem.. I created a custom page template for the "Theme My Login" login page, and then added the shortcode posted above in the page.php and single.php files. The trick is to place the shortcode code in the right place so that it does not interfere with other page code. I found placing the code just above the comments code block seems to do the trick..

    After making these changes the login page from the "Theme My Login" plugin no longer displays the login and logout messages in duplicate. Plus I didn't want the "Like" buttons on my login page anyway.. :)

    Will wait until the 1st release goes out before I go live with the SFC upgrade and the Theme My Login plugins.. Otherwise all is right with the world..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic