Opencart - Re-size featured products box front page
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
I know how to change the dimensions of the actual product picture but wonder how to change the actual box surrounding this image?
My site looks fine when viewed on Chrome but on Safari the 4th box along slips over to the next line making it look very messy. I'm assuming a quick tweak to the size will help.
Having searched the internet I'm pretty sure it can be done in a stylesheet, can anyone offer any further guidance please?
You'll see the 4 boxes in a row on my front page here www.printshetland.com
My site looks fine when viewed on Chrome but on Safari the 4th box along slips over to the next line making it look very messy. I'm assuming a quick tweak to the size will help.
Having searched the internet I'm pretty sure it can be done in a stylesheet, can anyone offer any further guidance please?
You'll see the 4 boxes in a row on my front page here www.printshetland.com
Re: Opencart - Re-size featured products box front page
Hi Justin
Yes this be changed in the stylesheet for your the featured product box, you would need to change the size for the "border" and possibly the "margin"
Yes this be changed in the stylesheet for your the featured product box, you would need to change the size for the "border" and possibly the "margin"
Matthew
Someone knocked over my recycle bin... there are icons all over my desktop.
Someone knocked over my recycle bin... there are icons all over my desktop.
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
Thanks Mattie
I know I'm close but not too sure where to look for these.
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
Aha, maybe I've been looking at the stylesheet for default and I have a custom template.....
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
Bingo, sorted it, just changed the background width of the box-product, can't check it works on Safari as my Mac is in the office! lol. Just need to centre the boxes on the page now I've made them a wee bit smaller!
Re: Opencart - Re-size featured products box front page
Sorry never thought about you having a custom theme lol to centre them add the line blow in your stylesheet:
text-align: center; on around line 734 so it looks like
.box-product .image {
display: block;
margin-bottom: 0px;
text-align: center;
}
text-align: center; on around line 734 so it looks like
.box-product .image {
display: block;
margin-bottom: 0px;
text-align: center;
}
Matthew
Someone knocked over my recycle bin... there are icons all over my desktop.
Someone knocked over my recycle bin... there are icons all over my desktop.
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
Lol, one of those things you don't remember until you post for help! 
Just tried that, doesn't seem to be working for me. I'm around line 978 but matches what you've written.
Just tried that, doesn't seem to be working for me. I'm around line 978 but matches what you've written.
Re: Opencart - Re-size featured products box front page
True I do it all the time even when i'm working on my website i always go to type "default"
that may work on line 978 if not i have a VQMOD file but it won't let me upload it to the forum
that may work on line 978 if not i have a VQMOD file but it won't let me upload it to the forum
Matthew
Someone knocked over my recycle bin... there are icons all over my desktop.
Someone knocked over my recycle bin... there are icons all over my desktop.
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Re-size featured products box front page
OK, well it looks like the template I bought from 'Algozone' was possibly riddled with problems, trouble is I didn't know until trying to update etc. I've had a heck of a time getting a working site back up and running following an attempted update to Opencart 2 and have to pretty much re-populate everything from scratch.
Where's the best place to get decent templates from? The one I brought was too heavily modified and caused a lot of issues.
Will start a new thread with my latest problem!
Where's the best place to get decent templates from? The one I brought was too heavily modified and caused a lot of issues.
Will start a new thread with my latest problem!
Who is online
Users browsing this forum: No registered users and 1 guest
