Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Apr 2012
    Location
    California
    Posts
    21
    Plugin Contributions
    0

    Default Editing tpl_main_page.php problem

    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.
    Last edited by jackolive; 18 Sep 2012 at 03:45 AM.

 

 

Similar Threads

  1. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  2. Copying & Editing /common/tpl_main_page.php
    By chrx in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 May 2011, 05:16 AM
  3. PHP help with broken tpl_main_page.php
    By HeresySnowboarding in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2008, 07:48 PM
  4. tpl_main_page.php problem..help :)
    By florence in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 26 Jul 2006, 11:00 PM
  5. strange problem with css and modification of tpl_main_page.php
    By sartzsche in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 May 2006, 09:21 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