• Resolved Gareth

    (@garethhadfield)


    Firstly, thanks for this great plugin.

    I have noticed that the main simplesocialbuttons DIV has “post-” classes for example “post-123 post”. This is causing problems since any styling added to .post is being applied to the social buttons.

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Sorry for the trouble. Can you share your site URL it help us fix the issue?

    Looking Forward,
    Team SSB

    Thread Starter Gareth

    (@garethhadfield)

    Thanks for the reply.

    My website is not live yet so I can’t give you a url. But the problem is that you are adding css ‘post’ classes to the buttons. In simple-social-buttons.php the function add_post_class() adds these classes. Removing the use of add_post_class() will solve this. If you must add a css class like this then you could add a prefix rather than just the post class (eg. ‘simple-social-post-123 simple-social-post’).

    To workaround this I am adding .post:not(.simplesocialbuttons){…} to my css.

    We are adding these classes for styling purposes if someone wants to add style for specific posts. But we will look at how we can fix this issue. Thanks for your suggestion.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘DIV has post- class’ is closed to new replies.