WordPress.org

Ready to get started?Download WordPress

Forums

WP Single Post Navigation
Need the buttons to appear in only one category posts (4 posts)

  1. satyaki
    Member
    Posted 1 year ago #

    Hi,

    Thanks for the nice plugin.

    However, I have a small request to make...........

    I want the buttons to be visible only for a single category post in my website.

    Can that be done.

    I checked in your style.css file of the plugin that you have stopped hand held devices from seeing the buttons using the code............

    ----------------
    @media screen and (max-width: 1024px) {
    .wpspn-area,
    #wpspn-nextpost,
    #wpspn-prevpost {
    display: none;
    }
    }
    ------------------

    Is there something similar to this that can point out that the buttons will not display except one particular category?

    Looking forward to your response.

    Thanks and regards
    Satyaki

    http://wordpress.org/extend/plugins/wp-single-post-navigation/

  2. satyaki
    Member
    Posted 1 year ago #

    Hi,

    I tried to create the coding for blocking all other categories except 18.
    However, it is also not working.

    The category name for category ID '18' is 'photo'.

    I have attached the code below for you to see............
    -----------------------------
    <?php if (in_category('photo')) {
    .wpspn-area,
    #wpspn-nextpost,
    #wpspn-prevpost {
    display: none;
    }
    }; ?>
    ------------------------------

    I don't know anything about coding and is a non technical person.

    Can you please check the code and suggest what I am doing wrong?

  3. satyaki
    Member
    Posted 1 year ago #

    Hi,

    Is it possible to be done what I am requesting?

  4. Li-An
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic