Category Widget in Sidebar

Community Forums Forums General Discussion Category Widget in Sidebar

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  Chris Cree 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9712

    chantal2012
    Participant

    I have the category widget installed in my secondary sidebar (left) at http://www.yvesrobichaud.com.  I do not want “Featured Posts for Dynamic Content Gallery” showing up in the list.  How do I “hide” this category?

    #9714

    Bill Murray
    Participant

    It’s not possible using the pre-installed category widget. Have a look at this WP codex page on the template tag wp_list_categories.

    That’s how you can fully customize the category list. If you’re a coder, you could put that into a shortcode with parameters, and then put the shortcode into a text widget. You could implement the parameters that you find most useful, and that would make it pretty flexible.

    If PHP isn’t your thing, you could see if there’s a plugin with a more powerful category widget. Just try a search on the WP plugin repo.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #9798

    Chris Cree
    Participant

    You can also cheat it with CSS. Add something like this to your style.css file and that category will be hidden wherever you use that widget.

    .widget_categories .cat-item-4 {
    	display: none;
    }

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.