Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2012
    Posts
    27
    Plugin Contributions
    0

    Default Customizing the Front index.php Page

    All,

    I have a pretty basic question:

    ZenCart has three columns:

    Left Column | CENTER COLUMN | Right Column

    Is there a way to turn off the left and/or right column ONLY for the main page....after that page, I want ZenCart to support all three columns.

    Thanks!

    Chris

  2. #2
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Customizing the Front index.php Page


  3. #3
    Join Date
    Jun 2008
    Location
    Sheffield South Yorkshire
    Posts
    165
    Plugin Contributions
    1

    Default Re: Customizing the Front index.php Page

    you can always comment out the html for the side you want to remove. e.g.

    PHP Code:
    <?php if ($this_is_home_page)
    { echo 
    " <!-- "?>

     ALL YOUR RIGHT COLUMN CODE HERE

    <?php if ($this_is_home_page)
    { echo 
    " --> "?>

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Customizing the Front index.php Page

    You could, but why would you do it the hard way when you could just write at the top of the file
    PHP Code:
    <?php if ($this_is_home_page) {
      
    $flag_disable_right true;
    }
    The HTML comments would still leave all the PHP processing active, so the page would take longer to load. Also, those comment tags would be prematurely ended at the first HTML comment in the right column output.
    Last edited by gjh42; 18 Oct 2012 at 05:03 PM.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Customizing the Front index.php Page

    What has Wordpress got to do with any of this? Are you sure you're at the right forum?
    20 years a Zencart User

 

 

Similar Threads

  1. Replies: 1
    Last Post: 1 Apr 2016, 02:10 PM
  2. Blank index.php and /admin/index.php page after install
    By gsummerlin in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 Jul 2006, 10:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR