Close

Change from 3 to 4 products per row using poavilion

Freddy1234
6 years ago
#13936 Quote
Avatar
  • 41
Has anyone any good tips on how to make it so the pavilion theme will show 4 products per row instead of 3 on normal category view ?

Valentin
6 years ago
#13942 Quote
Avatar
  • Moderator
  • 172
Freddy1234 wrote:
Has anyone any good tips on how to make it so the pavilion theme will show 4 products per row instead of 3 on normal category view ?



Greetings,

you can achieve that, by adding the following code to your Custom Head Styles section, located in your theme administration panel -> Nop-templates -> Themes -> Pavilion -> Settings:


@media (min-width: 769px) {
.item-box {
    width: 23.5%;
}
.item-box:nth-child(3n+1) {
    clear: none;
    margin-left: 2%;
}
.item-box:nth-child(4n+1) {
    clear: both;
    margin-left: 0;
}
}
Best Regards,

Valentin Kirov
Nop-Templates.com
Freddy1234
6 years ago
#13945 Quote
Avatar
  • 41
Valentin wrote:
Has anyone any good tips on how to make it so the pavilion theme will show 4 products per row instead of 3 on normal category view ?



Greetings,

you can achieve that, by adding the following code to your Custom Head Styles section, located in your theme administration panel -> Nop-templates -> Themes -> Pavilion -> Settings:


@media (min-width: 769px) {
.item-box {
    width: 23.5%;
}
.item-box:nth-child(3n+1) {
    clear: none;
    margin-left: 2%;
}
.item-box:nth-child(4n+1) {
    clear: both;
    margin-left: 0;
}
}


Thank you very much
Freddy1234
6 years ago
#14376 Quote
Avatar
  • 41
Hello
Any tips on how to do this if you want 5 in a row?
Valentin
6 years ago
#14378 Quote
Avatar
  • Moderator
  • 172
Freddy1234 wrote:
Hello
Any tips on how to do this if you want 5 in a row?


Greetings,

following the same approach, you can achieve that by changing the values of the CSS properties.
Best Regards,

Valentin Kirov
Nop-Templates.com
Freddy1234
6 years ago
#14380 Quote
Avatar
  • 41
Valentin wrote:
Hello
Any tips on how to do this if you want 5 in a row?

Greetings,

following the same approach, you can achieve that by changing the values of the CSS properties.


Hello  and thank you for the answer .
I tried doing that for awhilebut ended up that didnt get the boxes right:)
so i thought it was better asking here :)