Hello,
Can you explain it more? Please share your site link so that I can check it. Do you want to remove the grid/list view button from the categories pages only?
I do not have a site published yet, I am working locally, and what I want is that in the store the category page without products appears, then we go to the subcategories without products, and finally we arrive at the products, where I want the option to appear of the list / grid so that the user can change the view of the products, if I activate the list / grid from the options of the theme oceanwp always appears, both in the categories, subcategories and products. Thank you
It will be good if you create a staging site and share the link. I think you can do it using some css code.
with css I can hide it, but not in certain pages as categories
I didn’t understand it. Can you please explain it more?
Sorry for my English, just do not explain myself well. I have an option in oceanwp to show list / grid, but this option appears to me throughout the store.
I want it to appear only when I show products, not when I show the categories or subcategories of the store.
The buttons to change the way to display the products both in the list and in the grid that appears in the upper left, which only appears when I show the products, but by activating the display grid / list it appears throughout the store.
https://ibb.co/hKjdZ42
Try adding the below css code to the Customize > Custom css section and check it works or not –
.post-type-archive-product .oceanwp-grid-list {
display: none;
}
It works well on the store page, but on the next page of subcategories the grid appears again
.post-type-archive-product .oceanwp-toolbar {
display: none;
}
It will be good if you share a working link. Without seeing the site, it is difficult to provide the correct code.