WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] How do I style/change the like button width (3 posts)

  1. mikker
    Member
    Posted 3 years ago #

    First off, great plugin.

    Is there a way to control the style/width/output of the like button?

    When I manually insert it into my pages like this

    <?php if(function_exists('sfc_like_button')) { sfc_like_button(); } ?>

    It shows up, but it is to wide.

    Anyway to limit the width of this, so the like box is only 300px wide?

    I know I can control and install the like button via the FB dev page but I'd like to use the plugin.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    sfc_like_button(array('width'=>300));

  3. mikker
    Member
    Posted 3 years ago #

    Thank you Otto.

    And if others are wondering if you can change more things the answer is yes.

    sfc_like_button(array('width'=>300,'colorscheme'=>'dark'));

    will give you a dark like button.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic