Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    San Francisco
    Posts
    107
    Plugin Contributions
    0

    Default Removing Column from Main Page

    I'm trying to remove the right column from my main page - I found in the FAQ instructions to modify my tpl_main_page by inserting this code:

    if ($current_page_base == 'index' and $cPath == '')
    $flag_disable_right = true;

    which I have done to no effect. Am I missing something? Thanks

    I'm in the process of upgrading to 1.5 and would like a plain landing page for my main page.

  2. #2
    Join Date
    Jan 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Removing Column from Main Page

    Make sure you have inserted the condition into the override folder, and that you don't have a condition later on that will set $flag_disable_right to false. I have always used the following
    PHP Code:
    if($this_is_home_page) {
     
    $flag_disable_right true;

    Hope it helps.

  3. #3
    Join Date
    Oct 2005
    Location
    San Francisco
    Posts
    107
    Plugin Contributions
    0

    Default Re: Removing Column from Main Page

    Thanks - I'm using the apple-zen template, so maybe I need to post over on that thread. So far i can't get the tpl-main_page file to have any effect.

  4. #4
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Removing Column from Main Page

    Try this code in templates>yourtemplate>templates>tpl_index_default.php
    Just under this
    <div class="centerColumn" id="indexDefault">


    add this

    if (in_array($current_page_base,explode(",",'indexHome')) ) {
    $flag_disable_left = true;

 

 

Similar Threads

  1. HELP Removing content from main page!!!
    By scanham in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jan 2012, 02:20 PM
  2. Removing New Products from Main Page
    By Endrick in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jun 2011, 09:46 PM
  3. removing Greeting text from Main page
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Apr 2010, 12:38 AM
  4. Removing Catagories from the main page
    By Tiegirus in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Jul 2008, 10:57 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