Jump to content

Remove subcategories from a category page?


Recommended Posts

Sorry if this has been answered, I searched. I have a Category that has sub categories. When I go to the page for the main category, i just want it to show all of the products in all sub categories, without showing the preview image and name for the sub categories (see picture).

Directly above where the products are shown, it says the main category (MERCH), the under it, it shows all of the sub category titles (i removed the images and descriptions), then finally under all of that, it gets to the actual products. 

How can I get rid of all the un-needed names for the categories and sub-categories above the products? its not needed because its on the sidebar to the left.

Explain like Im a mentally slow 12 year old. Thanks in advanced!

PS v8.1.5 - php v8.1

Screenshot 2024-07-04 082552.png

Link to comment
Share on other sites

I just wanted to give an update. Ive inspected my site and played around with my custom.css file, i still cant get it to work, but i feel like maybe im close. or at least close enough that someone could see my error and easily fix it. 

this is what i have (that doesnt work) but it shows the directory of the stuff i want to hide. the "subcaterogies" part, as well as the part above it which is called "js-product-list-header"

 

any help is really appreciated. i know the site is in maintenance mode but i cant take it off right now. hopefully this bit of code is enough to work if modified correctly

#wrapper .container>.row>.content-wrapper>.main>.subcategories {
    display: none;
    visibility: hidden;
}

 

Link to comment
Share on other sites

8 hours ago, ps8modules.com said:

Hi.

./themes/classic/assets/css/custom.css

MERCH:

#js-product-list-header {
    display: none !important;
}

Subcategories:

#subcategories {
    display: none !important;
}

 

This worked perfectly, thank you!

  • Like 1
Link to comment
Share on other sites

Posted (edited)
1 hour ago, ps8modules.com said:

I gladly helped 🤫

Do you happen to know how to get rid of this part of the sidebar? i tried '#left-column' but it got rid of the whole sidebar, which i dont want. i then tried '#block-categories' and '#category-top-menu' and that didnt seem to work. do you know what the part i'm trying to hide is called?

Screenshot 2024-07-05 102951.png

Edited by GamerWipes
more info + pic (see edit history)
Link to comment
Share on other sites

I figured it out myself by messing around with the code (im very new to this). for anyone else that may want to know, this is the code I used

#left-column .block-categories {
    display: none !important;
}

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...