Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving Category Description below category images

Moving Category Description below category images

Locked

Views: 2,139

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 Apr 2010, 5:17 PM
#1
funkhouserjm avatar

funkhouserjm

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Moving Category Description below category images

v 1.3.8

I cannot seem to locate the php file to rearrange the code so that the category description appears below the category images.

I have tried moving the code in the "tpl_index_categories.php" file in my [my template]/template folder with no luck.

Any help would be greatly appreciated.

24 Apr 2010, 6:04 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Moving Category Description below category images

Funk,
edit the stylesheet.css

Find this:
#productDescription

Add this:
clear: both;

24 Apr 2010, 8:32 PM
#3
funkhouserjm avatar

funkhouserjm

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Moving Category Description below category images

thanks for the reply,

is there anyway to get the category description to the bottom? even below "new products for [month]"???

24 Apr 2010, 8:57 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Moving Category Description below category images

Funk,
Sure there is just following the logic here...

https://www.zen-cart.com/tutorials/index.php?article=5

24 Apr 2010, 10:05 PM
#5
funkhouserjm avatar

funkhouserjm

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Moving Category Description below category images

right, this is the logic i was following when i was looking to change the code in "tpl_index_categories" page

the link sent is for "tpl_product_info_display.php"

if i'm correct, this manages the product page, not the category page, because i did not see any code for category description that i could relocate.

24 Apr 2010, 10:41 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Moving Category Description below category images

Funkhouserjm:

right, this is the logic i was following when i was looking to change the code in "tpl_index_categories" page

the link sent is for "tpl_product_info_display.php"

if i'm correct, this manages the product page, not the category page, because i did not see any code for category description that i could relocate.

Funk,
includes/ templates/ your_template/ template/ tpl_index_categories.php

Around line 58

<?php // categories_description if ($current_categories_description != '') { ?> <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?>Move this coding below this coding.. <!-- BOF: Display grid of available sub-categories, if any --> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories --> <?php // categories_description if ($current_categories_description != '') { ?> <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?>

The red font is your new placement....

26 Apr 2010, 1:23 AM
#7
funkhouserjm avatar

funkhouserjm

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Moving Category Description below category images

no luck with this method, however instead of this code that you listed above:

<!-- BOF: Display grid of available sub-categories, if any --> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } I have only this: <!-- BOF: Display grid of available sub-categories, if any --> <!-- hsyong remove categories thumbnails --> <!-- EOF: Display grid of available sub-categories -->
26 Apr 2010, 1:35 AM
#8
funkhouserjm avatar

funkhouserjm

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Moving Category Description below category images

in fact, if i delete this file altogether, nothing much seems to happen