Jump to content

Remove subcategories from a category page?


GamerWipes

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

  On 7/5/2024 at 12:36 PM, ps8modules.com said:

I gladly helped 🤫

Expand  

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

  • 8 months later...

Hi, I am trying to hide the Main Category part (the category itself, Picture and the titel) and tried:

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

Unfortunately, it didn't work. Where can I find the name of each (this) element?

Thank you so much in advance.

image.png.86cc89d95523bc62ab9618135fc38a2f.png

Link to comment
Share on other sites

in your theme folder, load up yourthemename/templates/catalog/listing/product-list.tpl and find the following text

{block name='subcategory_list'}
      {if isset($subcategories) && $subcategories|@count > 0}
        {include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}
      {/if}
    {/block}

simply delete all of that text.

Link to comment
Share on other sites

  On 3/13/2025 at 3:20 PM, QuickUpdate.net said:

@Bettina you want to hide the subcategories as circled in your picture or the left sidebar?

Expand  

Dear QuickUpdate.net, 

I would like to hide the main category itself when selected/clicked and its picture as I circled in the screenshot. (Only show the subcategory when the main category is hit. )

Thank you so much!

Link to comment
Share on other sites

@Bettina

Hi.

This looks like an older Prestashop as shown in the picture. Maybe you can find the magic right mouse button. Just hover over the element, right-click and your browser will display Inspect element. Then you will see CSS style, HTML ... As already written, if you give us the URL of the store, we will definitely write to you what to change and where. Also specify your Prestashop version.

Link to comment
Share on other sites

  On 3/19/2025 at 3:18 AM, ps8modules said:

@Bettina

Hi.

This looks like an older Prestashop as shown in the picture. Maybe you can find the magic right mouse button. Just hover over the element, right-click and your browser will display Inspect element. Then you will see CSS style, HTML ... As already written, if you give us the URL of the store, we will definitely write to you what to change and where. Also specify your Prestashop version.

Expand  

Dear @ps8modules,

I tried the CSS right mouse thing. Managed to delete some elements but somehow messed up the whole design underneath... 🥲

Thank you so much. This is my link: https://golden-bridge-international.com/

Version: 1.7.7.2

Thank you again in advance!

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...