WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Likes You!
widget height (3 posts)

  1. Radina Matic
    Member
    Posted 2 years ago #

    Thanks for the awesome plugin!

    How do I change the height of the widget? I tried changing the lines 479 & 480 in the facebook-likes-you.php file but that did not do anything...

    Rgds,
    DD

    http://wordpress.org/extend/plugins/facebook-likes-you/

  2. Piotr Sochalewski
    Member
    Plugin Author

    Posted 2 years ago #

    You can't at the moment, because it's auto generated.

    But if you have no-XFBML, then you can try remove lines from 440 to 452 and replace it by $height = YOUR_HEIGHT;.

    Also if you have XFBML version, you can change it manually, but it's a little harder. Go to line 426 and replace
    $fblikebox = '<div class="fb-like-box" data-href="' . $url . '" data-width="' . $width . '"' . ($fb_like_settings['colorscheme']=="dark" ? ' data-colorscheme="dark"' : '') . ' data-show-faces="' . ($showfaces ? 'true' : 'false') . '" data-stream="' . ($stream ? 'true' : 'false') . '" data-header="' . ($header ? 'true' : 'false') . '"></div>';
    by
    $fblikebox = '<div class="fb-like-box" data-height="YOUR_HEIGHT" data-href="' . $url . '" data-width="' . $width . '"' . ($fb_like_settings['colorscheme']=="dark" ? ' data-colorscheme="dark"' : '') . ' data-show-faces="' . ($showfaces ? 'true' : 'false') . '" data-stream="' . ($stream ? 'true' : 'false') . '" data-header="' . ($header ? 'true' : 'false') . '"></div>';

    I'm going to include possibility to simpler way in next release. Thanks you for your report. ;)

  3. Radina Matic
    Member
    Posted 2 years ago #

    Thanks Piotr, chan­ging the code as per your sug­ge­stion worked… :)

    Ple­ase add that option in the admin panel, it will be good impro­ve­ment of the plug-in. Keep up the good work!

    Rgds,
    DD

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic