Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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. #3
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: category title above category image

    Quote Originally Posted by stevesh View Post
    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...

    www.test.soundfactory.nu

  4. #4
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: category title above category image

    Quote Originally Posted by Soniccc View Post
    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.ph...ndex&cPath=276

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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

  6. #6
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: category title above category image

    Quote Originally Posted by stevesh View Post
    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!

 

 

Similar Threads

  1. v151 move category name above category picture
    By creff in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Feb 2014, 08:48 PM
  2. Remove category link above product image?
    By jrbeck in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Mar 2012, 09:21 PM
  3. Category Image on Main - Remove Category Title
    By mountash in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 May 2010, 12:08 AM
  4. Category Title Options Images Above Instead Of To The Left - Help Please
    By DPM in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jun 2008, 03:17 PM
  5. Category link above image on product page
    By xman888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2008, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg