Title: DIV has post- class
Last modified: May 29, 2020

---

# DIV has post- class

 *  Resolved [Gareth](https://wordpress.org/support/users/garethhadfield/)
 * (@garethhadfield)
 * [6 years ago](https://wordpress.org/support/topic/div-has-post-class/)
 * 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)

 *  [Sharaz Shahid](https://wordpress.org/support/users/sharaz/)
 * (@sharaz)
 * [6 years ago](https://wordpress.org/support/topic/div-has-post-class/#post-12931666)
 * Hi,
 * Sorry for the trouble. Can you share your site URL it help us fix the issue?
 * Looking Forward,
    Team SSB
 *  Thread Starter [Gareth](https://wordpress.org/support/users/garethhadfield/)
 * (@garethhadfield)
 * [6 years ago](https://wordpress.org/support/topic/div-has-post-class/#post-12935511)
 * 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.
 *  [Sharaz Shahid](https://wordpress.org/support/users/sharaz/)
 * (@sharaz)
 * [6 years ago](https://wordpress.org/support/topic/div-has-post-class/#post-12935930)
 * 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.

 * ![](https://ps.w.org/simple-social-buttons/assets/icon-256x256.png?rev=2439696)
 * [Simple Social Media Share Buttons - Social Sharing for Everyone](https://wordpress.org/plugins/simple-social-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-social-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-social-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-social-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-social-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-social-buttons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sharaz Shahid](https://wordpress.org/support/users/sharaz/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/div-has-post-class/#post-12935930)
 * Status: resolved