WordPress.org

Ready to get started?Download WordPress

Forums

Simple Social - Sharing Widgets & Icons
Is there a way to remove this from pages? (5 posts)

  1. katiek648
    Member
    Posted 3 years ago #

    I just installed Simple Social on my site, but I'd like to use this only on Blog posts, not pages. Is there a way to remove this from all pages?

    http://wordpress.org/extend/plugins/simple-social-sharing-widgets-icons/

  2. wyndom
    Member
    Posted 3 years ago #

    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

  3. Cryptix
    Member
    Posted 3 years ago #

    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.

  4. numaga
    Member
    Posted 3 years ago #

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

  5. cassel61
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic