Forums / Templates, Stylesheets, Page Layout / category title above category image

category title above category image

Views: 660

Results 1 to 6 of 6
3 May 2011, 2:59 PM
#1
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

category title above category image

I would like to customize the look of the categories page so that the category title display above the category image. Right now it's the other way around. I haven't found an easy way to do this using css..

Thanks
soniccc

3 May 2011, 3:06 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: category title above category image

In my stock Zencart test site, the category name is above the category image, so we'll need to see your site to know what your template designer has changed.

3 May 2011, 3:09 PM
#3
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: category title above category image

stevesh:

In my stock Zencart test site, the category name is above the category image, so we'll need to see your site to know what your template designer has changed.

Well I've made all the customizations myself so I'm pretty puzzled about this...

https://www.test.soundfactory.nu

3 May 2011, 3:37 PM
#4
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: category title above category image

Soniccc:

Well I've made all the customizations myself so I'm pretty puzzled about this...

Perhaps I should add I meant the sub-category title's below the category image. I.e the Prym picture's above the Prym text..

http://test.soundfactory.nu/index.php?main_page=index&cPath=276

3 May 2011, 3:56 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: category title above category image

Sorry, I misunderstood.

In includes/modules/category_row.php, find 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>');

and edit it to look like 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>');

and save it to includes/modules/custom

3 May 2011, 4:01 PM
#6
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: category title above category image

stevesh:

Sorry, I misunderstood.

In includes/modules/category_row.php, find 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>');

and edit it to look like 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>');

and save it to includes/modules/custom

You're always Great! Thanks!