WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] Like Button Defaults (7 posts)

  1. Derek Perkins
    Member
    Posted 3 years ago #

    I am editing the like button defaults in sfc-like.php, but I was wondering if you were planning on adding the ability to add that ability to the admin interface / store the values in the database so that there aren't upgrade issues.

    Thanks for a great plugin!

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    If you call the function directly from your theme files, instead of using the automatic placement function, then you can do this to change any of the defaults:

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

    An upgrade won't change your parameters this way, since you're putting them directly into your theme.

  3. Derek Perkins
    Member
    Posted 3 years ago #

    That's perfect. Sorry I missed that in the code. Thanks!

  4. ibenick
    Member
    Posted 2 years ago #

    I went in and changed mine to dark which changed the text but left the background of the area white, making it unreadable. Any ideas on what I'm doing wrong?

    Example here:

    http://backcountrypost.com/?p=1457

    Thanks!

  5. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Looks fine to me.

  6. ibenick
    Member
    Posted 2 years ago #

    Sorry, that's not the Simple Facebook Connect button. I ended up using a different one and manually inserting the shortcode into the single.php file. It's the only workaround I've been able to make work that displays the background color and formatting correctly.

  7. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    The SFC like button works the same as the code on their own page generator:
    https://developers.facebook.com/docs/reference/plugins/like/

    It can't control how the thing looks, the light vs dark just changes the tag in the same way FB's code does.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic