I am trying to add content to all of my pages in the center column via the tpl_main_page.php file. I have added the content to the tpl_main_page.php file between
<?php
/**
* prepares and displays center column
*
*/
require($body_code); ?>
ADDED CONTENT HERE
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
The content is showing up on all of the pages like I want but the problem is on the main page. The content (whole div) is linking to a random product page. On the other pages the content shows as intended without linking to anything. I do not want the added content on the main page to link to a random product page like it is. This seems strange and is not intended.
I have saved this file to the override folder templates/CUSTOM/common/tpl_main_page.php. I am using a custom template. I haven't had any problems like this before.
I have searched the forum and the internet for anything relating to this problem and can't find a solution. Any help would be greatly appreciated. Thank you in advance.


Reply With Quote
