WordPress.org

Support

Support » Plugins and Hacks » Can the buttons be blocked to appear in some categories

Can the buttons be blocked to appear in some categories

  • Hi,

    Thanks for the nice plugin.

    I hope you can help me with one small request.
    I am a newbie but my question might take only a couple of seconds for you to answer.
    Sorry to bother you with such a noob question.

    I do not wish the prev/post switches to appear in posts of certain category………….

    In your plugin STYLE.CSS file you have put the option to exclude the switches to show up in a mobile device……

    ———————————————-

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

    ———————————————–

    I guess, just like the line “@media screen and (max-width: 1024px)” we can put some code that will tell the program to not display anything for certain categories.

    Can you help me to work this out?

    Thanks for your time.

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

Viewing 1 replies (of 1 total)
  • Hello,

    I was wondering if I could insert a line like this in the single.php file of my theme

    ————————-

    <?php if ( in_category(‘3’) ) { wdpv_vote(); } ?>

    ————————-

    However, I am confused about what to write instead of “{ wdpv_vote();}”

    I am not using the ‘vote’ plugin but yours instead.

    Please help me out.

Viewing 1 replies (of 1 total)
  • The topic ‘Can the buttons be blocked to appear in some categories’ is closed to new replies.