• Resolved Derek Perkins

    (@ploobers)


    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

    Thread Starter Derek Perkins

    (@ploobers)

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

    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:

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

    Thanks!

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Looks fine to me.

    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.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Like Button Defaults’ is closed to new replies.