Hide Main Category on Add Listing

This topic contains 11 replies, has 3 voices, and was last updated by  Paolo 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #363092

    Neil Hall
    Buyer
    Post count: 83

    Hi

    On the ‘Add Listings’ page is it possible to hide just the main category from the category selection list. (see Hide main category.jpg) I would like to just hide the ‘Places to Visit’

    I did try the following `
    .main_list_selecter {
    display: none;
    }
    `
    By entering it in the GeoDirectory>Place Settings>Custom Fields>Categories (Taxonomies) in the CSS class field. But this has no effect.

    FYI I am using ‘checkbox’ for the Category Display Type.

    #363096

    Guust
    Moderator
    Post count: 29970

    Even if you could hide the parent category, adding a listing to a subcategory will also automatically add it to the parent category.
    Would it not make more sense to remove the parent category rather than just hiding it?

    #363155

    Neil Hall
    Buyer
    Post count: 83

    Hi Guust
    Yes, I know that the main category is automatically selected when a sub-category is selected, which is what I want.

    I just wanted to clean it up so the user does not need to see the main category. Do you think this is possible?

    #363201

    Paolo
    Site Admin
    Post count: 31206

    If you provide a link and admin credentials I’ll if it’s possible with CSS.
    Let us know,

    Thanks

    #363297

    Neil Hall
    Buyer
    Post count: 83
    This reply has been marked as private.
    #363403

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    my IP is 187.178.189.81

    I’ll check if it’s possible and if it is I’ll give you CSS for 1 cpt and you’ll adapt it to all other.

    Thanks

    #363408

    Neil Hall
    Buyer
    Post count: 83

    Hi Paolo

    IP has been entered, let me know if you have a problem

    #363415

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you only have 1 parent category per CPT, why not remove it and only work with 1st level categories, instead of hiding it?

    Let me know,

    Thanks

    #363421

    Neil Hall
    Buyer
    Post count: 83

    Hi Paolo

    The structure that we have gives us what we trying to achieve, and the flexibility for the user to navigate easily through the different pages to what they are interested in.

    To be clear, all I am trying to do is to hide the main category on the “add listing” page so they do not have to tick it (This is done by default).

    #363456

    Paolo
    Site Admin
    Post count: 31206

    Ok, this css should work for all CPT:

    
    
    .gd-cats-display-checkbox.gd-cat-row-0 > span {
        display: none !important;
    }

    Please add it to GD > Design > Scripts > Custom css.

    Thanks

    #363648

    Neil Hall
    Buyer
    Post count: 83

    Hi Paolo

    Many Thanks, That is perfect. Thank you once again for your great support

    #363669

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket