Delete picture in subcategory

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hello,

I have working with nop commerce 3.80 and I want delete the picture in subcategories because they take a lot of space. I can delete the pictures but not the image box or I would like to reduce the size of the picture in subcategory and to put more than 3 subcategory in the row. Is it possible to choose how many categories we want in the row. Thanks!
5 years ago
Not via settings - you can change the size of the image in media settings

Otherwise you need to customise the template

CategoryTemplate.ProductsInGridOrLines.cshtml

You can copy the template and make a new template (add a new entry to the CategoryTemplate Table)

Then you can select the alternate template for a particular category in Admin
5 years ago
Thanks, I try it!
5 years ago
Hello encantoos.

You can delete either the picture or the image box by modifying the template file (CategoryTemplate.ProductsInGridOrLines.cshtml)

But if you want to resize the image box, and to have a different number of sub-categories per row, then you have to edit your theme css file(s). In the default nopCommerce layout, the number of boxes per row is entirely css controlled, there is no admin setting for that.


Regards
/ Hristo
5 years ago
Thanks, I have managed to delete the image in the subcategory, but I would prefer to minimizer the pictures and to increase the total per row. I don't know where I have to change the CSS. What is the file and how can I to change? I'm sorry, I just have a shop online and I'm not a programmer. Many thanks for the support :)
5 years ago
If you are using the default nopCommerce theme, then the whole css code is put into a single file - "styles.css". You can find it inside the \Content\css\ folder in your theme directory.
If you are using another theme, then the css placement may differ.

Anyway you are going to need some CSS knowledge in order to change the size and number per row of the image boxes.

Regards
/ Hristo
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.