Hide sub categories

  • Author
    Posts
  • Jmaemillz

    Hey ihor love your theme
    I wanted to know how does one hide the sub categories to the main category in the listings page?
    Plus can one only show listings to a certain attribute in a page?
    Plus how does one add a copyright in the theme cause mine doesn’t even have a copyright

    Jmaemillz

    For the categories I mean hide the sub categories from the search form if it’s not possible hide the categories from the the search form

    Jmaemillz

    Ihor I already figured out everything, the theme is working perfectly. My only query is on how to add a copyright to my site, plus how can I remove the categories showing in the listings page just below a listing?

    ihordeveloper

    Thanks!

    You can set the copyright notice in Appearance/Customize/Site Identity section. Please let me know if you mean the category filter in the search form or the category of the listing displayed below the each listing title?

    Jmaemillz

    category of listing displayed below each listing title. Thanks a lot it has worked

    Jmaemillz

    I have also seen you code for removing the keyword search bar on the search form and replacing it with categories, it worked magnificently thanks. I wanted to know can the code be made in a way it only shows the main categories and not include sub categories

    ihordeveloper

    This CSS snippet should hide the categories:

    .hp-listing__categories {display:none}

    You can try adding 'parent' => 0, to a list of “option_args” passed to the field.

    Jmaemillz

    Thanks, Ihor but nothing has happened to my site
    but none of the codes have worked. I have put the first code .hp listing code to style.cc of my child theme and the other below option_args

    Jmaemillz

    Thanks it has worked Ihor thanks so much

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.