Support » Plugin: Simple Social - Sharing Widgets & Icons » [Plugin: Simple Social – Sharing Widgets & Icons] Is there a way to remove this from pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I had a similar problem with this plug-in. if you open up the simple-social.php file you can play around with what icons are inserted into by modifying this line of code (will probably be line 15)
    if (!is_feed() && !is_page()) {

    I added this:
    if (!is_feed() && !is_page() && !in_category(array(4,5)) ){

    It now excludes my custom posts located in categories 4 and 5

    good luck

    Since I had the same problem I thought I’d post the solution to this here for anyone else to use:

    Change this line:
    if (!is_feed() && !is_page()) {

    to the following:
    if (!is_feed() && !is_front_page()){

    This will remove the social sharing widget from all pages, and will only show on blog posts.

    I want to make sure it doesn’t show in my excerpts AND pages completely… how do I do that?

    Is there a way to get this set of icons NOT to show on some specific pages only? I am building a membership site, and i would not want some of the pages being shared. Is there a simple css coding for that? or something even simpler?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Simple Social – Sharing Widgets & Icons] Is there a way to remove this from pages?’ is closed to new replies.