(PressGraph) Facebook Like
[resolved] [Plugin: Facebook Like Button] toggling the container class (2 posts)

  1. danielle_r
    Posted 4 years ago #

    Hi all,
    I'm working on a little script to toggle the like button. I've put the plugin in a custom container class (wvds-fb) which is set to display the button at the bottom of the content.
    Now when I try to hide the container from view using
    #wvds-fb{display:none;} nothing happens that is, the button is still visible. Is there a way to manipulate the container for the like button?

    Any help is greatly appreciated, best, danielle.


  2. danielle_r
    Posted 4 years ago #

    Wow, I've managed to slove it. For anyone interested here is the solution:
    got to wp-content/plugins/facebook-like-button/inc/buttons.inc.php On line 71 you see the <span class $Value['css'] etc.
    Here you can add/hard code your style elements.
    My javascript uses an id to toggle so the class name for me was of no use. I still wonder why the class is there if you can't use it to manipulate the class through the style.css. But maybe I'm missing something?
    Best, danielle

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • (PressGraph) Facebook Like
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic