Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / move category name above category picture

move category name above category picture

Views: 932

Results 1 to 5 of 5
21 Feb 2014, 9:14 PM
#1
creff avatar

creff

New Zenner

Join Date:
Oct 2008
Posts:
46
Plugin Contributions:
0

move category name above category picture

I am interested in swapping vertically, the position of the category image and the category name. I apologize if this has been answered but searching now turns up so much stuff I cant find what Im looking for anymore.

Thanks.

21 Feb 2014, 10:05 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: move category name above category picture

Can you post an example of the page you're referring to?

21 Feb 2014, 10:20 PM
#3
creff avatar

creff

New Zenner

Join Date:
Oct 2008
Posts:
46
Plugin Contributions:
0

Re: move category name above category picture

21 Feb 2014, 10:26 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: move category name above category picture

includes/modules/category_row.php

Change this:
$list_box_contents[$row][$col] = array(
'params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');

To this:
$list_box_contents[$row][$col] = array(
'params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories->fields['categories_name'] . '<br />' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>');

Should do the trick.

24 Feb 2014, 7:48 PM
#5
creff avatar

creff

New Zenner

Join Date:
Oct 2008
Posts:
46
Plugin Contributions:
0

Re: move category name above category picture

that did it, thanks.