Hi,
I'm trying to put custom text on my home page but I want it to be below the product sections (featured products, etc.)
Here's what I did:
I put my custom text in define_main_page.php
This made the text show up on the home page above the Featured Products.
So then I edited (mytemplate)/tpl_index_default.php
I found this section that controls displaying the defined text (when I delete these lines, the defined text disappears):
Code:
<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
/**
* get the Define Main Page Text
*/
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>
Now it would be logical to assume that if I move that entire section to below the code which displays the featured products, I should get the result I want, right? wrong.
For some reason when I move that block of code to below this block of code:
Code:
<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
<?php
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
it has the odd and frustrating behavior of displaying my custom text TWICE--once below the featured section and once above it.
I double-checked that I actually moved the code, not copied it.
Can anyone shed some light on this?
Bookmarks