• Resolved Gvidas

    (@gvidas)


    Hey, i need to hide one category from “add” page category checkbox.

    I try:

    .advert_category-30 { display: none }

    But isn’t work for me… What i do wrong? Or there are other method for that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, there is no such class, your CSS should be

    
    label[for="advert_category-30"] { display: none !important }
    
    Thread Starter Gvidas

    (@gvidas)

    this code goes to my theme style.css right? But not working, still show that category in category select box. I using single select method, not multi select, so that can be problem?

    Plugin Author Greg Winiarski

    (@gwin)

    It is best to add the code in wp-admin / Appearance / Customize / Additional CSS panel then it will not be overwritten on WPAdverts update.

    If the code does not work for you please paste here a link to your page with [adverts_add] shortcode i will take a look at it.

    Note that one other way to disable some category is to use Restricted Categories add-on https://wpadverts.com/extensions/restricted-categories/

    Thread Starter Gvidas

    (@gvidas)

    Still nothing, i dont understand why… my webstie with [adverts_add] : https://goo.gl/UXGkpD

    Plugin Author Greg Winiarski

    (@gwin)

    This is because you are using categories in single-select mode, please use the following CSS code instead

    
    .adverts-field-name-advert_category option[value="30"] {
        display: none;
    }
    
    Thread Starter Gvidas

    (@gvidas)

    THANK YOU

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How hide specific category’ is closed to new replies.