Title: Using SFC With Custom Theme
Last modified: August 20, 2016

---

# Using SFC With Custom Theme

 *  Resolved [Cassie396](https://wordpress.org/support/users/cassie396/)
 * (@cassie396)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/using-sfc-with-custom-theme/)
 * Hello,
 * I would like to use Simple Facebook Connect on my WordPress. I have it all installed
   and it works correctly when I’m using Twenty Eleven. Right now I’m just looking
   at the ‘Like’ button and count on posts – both the index and singles.
 * However, I’ve been developing my own custom theme (one of my first) and I’m having
   trouble getting the buttons to show up. I
 * I’ve tried these three pieces of PHP individually:
 *     ```
       <?php if (function_exists('sfc_like_button')) echo sfc_like_button(array('action'=>'recommend', 'layout'=>'button_count'));?>
   
       <?php if (function_exists('sfc_like_button')) echo sfc_like_button(array('layout'=>'button_count','showfaces'=>'false','width'=>'130','height'=>'25','action'=>'recommend','colorscheme'=>'light','font'=>'lucida+grande'));?>
   
       <?php if (function_exists('sfc_share_button')) echo sfc_share_button();?>
       ```
   
 * But nothing shows up under the post content. But when I look at the source, it
   seems like the code is working:
 *     ```
       <fb:like href='http://www.ethereal-beauty.com/2011/10/sample-post-one/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='recommend' colorscheme='light' font='lucida+grande'></fb:like>
   
       <fb:like href='http://www.ethereal-beauty.com/2011/10/sample-post-one/' send='false' layout='button_count' show_faces='false' width='130' height='25' action='recommend' colorscheme='light' font='lucida+grande'></fb:like>
       ```
   
 * But then nothing is showing up on the page… no buttons, count box or anything
   like on Twenty Eleven.
 * Does anyone have any ideas as to why this might not be working? Any tips for 
   integrating SFC into a custom-built theme?
 * I’d really appreciate some help! SFC is an awesome plug-in! 🙂

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 5 months ago](https://wordpress.org/support/topic/using-sfc-with-custom-theme/#post-2366165)
 * Make sure your theme has both the required `wp_head();` and `wp_footer();` calls
   in the header.php and footer.php, respectively.
 *  Thread Starter [Cassie396](https://wordpress.org/support/users/cassie396/)
 * (@cassie396)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/using-sfc-with-custom-theme/#post-2366251)
 * I forgot the wp_footer() tag. It is working perfectly now… thank you so much!
   🙂

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

The topic ‘Using SFC With Custom Theme’ is closed to new replies.

## Tags

 * [sfc](https://wordpress.org/support/topic-tag/sfc/)

 * 2 replies
 * 2 participants
 * Last reply from: [Cassie396](https://wordpress.org/support/users/cassie396/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/using-sfc-with-custom-theme/#post-2366251)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
