WordPress.org

Ready to get started?Download WordPress

Forums

Category Sticky Post
[resolved] Adds the Category to my nav menu (5 posts)

  1. dpolcino
    Member
    Posted 1 year ago #

    Great plugin, just oddly I get the category added to my top nav for some reason! Any idea on how to stop it from doing that?

    Also, can I just remove the styling all together so it uses my theme's style?

    http://wordpress.org/extend/plugins/category-sticky-post/

  2. DrRogg
    Member
    Posted 1 year ago #

    Not sure why it would be added to your top nav - are you using the old menu code (i.e. pre-WordPress 3.0)?

    To remove the stylesheet, use this. You may need to restyle it yourself in your theme's style.css.

    function rog_dequeue_sticky_styles() {
        wp_dequeue_style( 'category-sticky-post' );
    }
    add_action( 'wp_enqueue_scripts', 'rog_dequeue_sticky_styles', 10 );
  3. tommcfarlin
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Dpolcino,

    I don't think this plugin is adding anything to your top-level menu. There's nothing that's actually in the code that should do this.

    And @DrRogg is spot on for dequeueing the styles.

  4. dpolcino
    Member
    Posted 1 year ago #

    Hah I don't even remember this issue! But it's all good now!

  5. tommcfarlin
    Member
    Plugin Author

    Posted 1 year ago #

    Ha! Awesome - glad to hear it :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.