Forums / Basic Configuration / How to add paragraphs / words at lower portion of page?

How to add paragraphs / words at lower portion of page?

Locked

Started by bedtime21 on 19 Aug 2009, 5:26 AM · Views: 1,063

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Aug 2009, 5:26 AM
#1
bedtime21 avatar

bedtime21

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

How to add paragraphs / words at lower portion of page?

I cannot find this answer. Here is an example of a site.
Pleae see lower portion of the page. it has several paragraphs..
http://www.interior-furniture.co.uk/

Here is my new site that will need a similiar piece...
https://www.decorfurnituresandiego.com

THANKS<< SO MUCH!:P:P

19 Aug 2009, 1:03 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How to add paragraphs / words at lower portion of page?

I think that what you are saying is that you want the category description at the bottom rather than the top of the page. Is that right? If it is then I suggested a solution for someone else who wanted to split the category description between top and bottom which would show you how to do it.

http://www.zen-cart.com/forum/showthread.php?p=768930#post768930

Go down to the bottom because I made a howling error on the first attempt:D

Actually your solution could be much simpler and if you have a bit of understanding of the files you can just edit tpl_index_categories.php and then you won't need to bother with any of the stuff that is involved in splitting the category description into two parts.

Nick
iszent.com

19 Aug 2009, 1:06 PM
#3
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How to add paragraphs / words at lower portion of page?

Looking again I realise that what I said might not be appropriate. It will only work on the product listing page. If you want stuff elsewhere we'd need to come up with plan B

Nick
iszent.com

23 Sep 2009, 10:26 PM
#4
bedtime21 avatar

bedtime21

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: How to add paragraphs / words at lower portion of page?

Nick:
I have gotten to my request. Thanks for your efforts.

I want to fix and have taken your advice.

I cant find this..
just edit tpl_index_categories.php

24 Sep 2009, 7:23 AM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How to add paragraphs / words at lower portion of page?

You will find tpl_index_categories.php in either:

  1. includes/templates/yourtemplate/templates/
  2. includes/templates/default_template/templates/

If it is in position 2 but not in position 1 then you need to copy it from 2 to1 to create an override version of it.

Once you have the file includes/templates/yourtemplate/templates/tpl_index_categories you are looking for the block of code that looks like:

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description;  ?></div>
<?php } // categories_description ?>
<!-- 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 -->

The top section (in red) outputs the category description to the page. You can cut and paste it below the other section.

Then your category description will appear below the images.

Nick
iszent.com