If this is your first visit, check our documentation. To post, register or login.

Center box position

Started by logicalstep on 28 May 2013, 9:43 PM · Views: 1,037

Results 1 to 10 of 10
28 May 2013, 9:43 PM
#1
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Center box position

Hi All,

I'm re-designing the website and I'm stuck!
I'm trying to utilise the centerboxes to show certain items. I decided to utilise existing features to do this. I'm using the featured items and I'd like to use the specials centerbox to show a single special item.

So using the existing features seems like a sensible idea. I have managed to get the Featured products box up in the top right and showing items correctly, but I'm guessing the Specials box is utilising the same CSS tag and as such I'm lost on how to get this aligned and showing correctly.

Can anyone point me in the right direction / give some advice?

Version 1.5.1
Website: http://www.webextend.co.uk/bristolfashion/

Many thanks

Logicalstep

28 May 2013, 9:53 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Center box position

Something like this in your stylesheet might help:

#specialsDefault {height: 180px;}

though one wonders why you don't use the Featured and Specials sideboxes in the right sidebox column to do much the same thing.

(BTW, I found that in a minute or two using the Firebug plugin for Firefox. An essential tool.)

28 May 2013, 10:00 PM
#3
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Re: Center box position

HI Stevesh,

That would probably be more sensible. to be honest, I wasn;t thinking straight, I was thinking those modules were only available on the center box!

Thanke for the tip, I'll have a play and be back if I get stuck.

29 May 2013, 7:10 PM
#4
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Re: Center box position

I've replaced the centerbox with sideboxes, but now the sidebox only shows images in a single column, whereas the centerbox showed them in a grid.
Is there any way to get the sideboxes (specifically the featured box) showing in grid view? I'd liek to get 6 images in a grid.

Many thanks

Logicalstep

4 Jun 2013, 7:23 PM
#5
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Re: Center box position

Bump anyone.....if someone could just point me to the correct code module I can have a play?

Many thanks

4 Jun 2013, 9:19 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Center box position

You should be able to get the items in a grid with a CSS rule or two, without touching the PHP. The exact rule will depend on what your output source looks like, so seeing it live will let us advise. In brief, you would make the items float left and have say 49% width so two fit per line.

Found link in OP, looking now...

5 Jun 2013, 7:19 PM
#8
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Re: Center box position

ha, Fantastic thanks gjh42...almost there but...

The only issue is it only shows 2 of the 4 products I have on as featured. I've tried to see what it could be, but I'm lost. any thoughts?

Ideally I'd like another two columns to the right, so 6 images total.

Thanks again

5 Jun 2013, 8:18 PM
#9
logicalstep avatar

logicalstep

New Zenner

Join Date:
Jan 2011
Posts:
44
Plugin Contributions:
0

Re: Center box position

hmm looks like its showing only random products from the featured catalog.
Taken it from here by the looks: while (!$random_featured_product->EOF) {

Any clues as to where this array is generated and if it contains all the featured products and if so is it using a random function of PHP to show random ones?

I'm not a PHP programmer, so I'm still trying to learn all this.

Thanks