Page 1 of 1
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 16:58
by Justin
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
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 17:04
by Mattie
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"
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 17:05
by Justin
Thanks Mattie

I know I'm close but not too sure where to look for these.
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 17:07
by Justin
Aha, maybe I've been looking at the stylesheet for default and I have a custom template.....
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 17:16
by Justin
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
Posted: 05 Oct 2014, 17:41
by Mattie
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;
}
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 18:27
by Justin
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.
Re: Opencart - Re-size featured products box front page
Posted: 05 Oct 2014, 18:38
by Mattie
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
Re: Opencart - Re-size featured products box front page
Posted: 08 Oct 2014, 21:56
by Justin
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!
