change size of attribute sqaure images

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

How can I change the size of an attribute square image in nop 4.2 ?

Thank you!
4 years ago
Help please
4 years ago
BawBaw wrote:
change the size

At the front-end? Try with css.

Regards,
Tom
3 years ago
I try to change in css, but the size is fixed, I need to change it more bigger.
I used nop 4.2 and the default clean themes...
3 years ago
You changed this CSS ?
.attribute-squares .attribute-square {
    display: table !important;
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #444 !important;
    cursor: pointer;
}
You will need to clear cache and you browser cache and check that it is updated

If that does not work the file to look at is
src\Presentation\Nop.Web\Views\Product\_ProductAttributes.cshtml

But looks like there is a setting for the size used in the Factory
_mediaSettings.ImageSquarePictureSize
3 years ago
Thank you Yidna, problem solved now!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.