Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Kim, you must have been right. I deleted my content from the page, just left in some text, validated it and now the code

    if ($this_is_home_page) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }

    works

    Now if I can figure out how to get the darn css menu to appear where it's supposed to I'm good to go...
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  2. #12
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Well, I thought this was fixed but I was wrong. I can still only turn off one column, not both and I have even reinstalled the entire cart. Anyway, I can live with that if I have to but what I'm finding is that any page that acts as a "main" page has no left column, I only want the left column off on the actual home page of the store.

    For instance, there is no left column on a category page. How can I fix this so that the left column is only off on the home page of the store?

    (yes, I know I now have a bajillion validation errors that are mostly coming from the menu so I am working on that. I had this column error when the page validated also)


    TIA
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  3. #13
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: turning off left column wipes out home page

    If your files are double spaced it is usually an indication you uploaded the files in Binary mode instead of ASCII.

    // the following IF statement can be duplicated/modified as needed to set additional flags
    if (in_array($current_page_base,explode(",",'index')) ) {
    $flag_disable_left = true;
    }

    The above code will disable the left column on "every" page because every page uses "index" in the URL.

    For the Home page you need to use:

    if ($this_is_home_page) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }

    As to your many HTML errors, ditch your Navigation Menu until you can get the bugs worked. Using the above code and switching to the Classic template should verify that your HTML errors are causing problems for the PHP coding.

  4. #14
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Thanks Rob. I have deleted the drop menu but now I've got bigger problems. I'll try what you said if I can ever get back into admin
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  5. #15
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Believe it or not, on a brand new install with no changes to it at all, the code to turn off both columns didn't work for me. But - in case anyone else wants to do this is having a problem - this did: a combination of the original code to turn off the right column on all index pages & Rob's code to turn off left on home page only.

    Unfortunately, I have to reinstall my cart because of this admin problem
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

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

    Default Re: turning off left column wipes out home page

    If the basic $this_is_home_page column-off code is not working, there is some problem with your site/host/installation... because those two flags will work as is for a normal installation.

  7. #17
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    I always install through Fantastico, but since you mention it, I've had feeling for awhile that there is something a little "off" with my hosting servers, or something to do with them. Just little things here and there that are odd, since they did this upgrade several months back.
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. turning off right, and left column, and keep the sideboxes
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 26 Jan 2012, 12:17 PM
  2. reviews in left hand column on home page only
    By ellis200200 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 24 Jan 2012, 04:21 PM
  3. catagories list on site/home page on left column
    By adulttoyshome in forum General Questions
    Replies: 0
    Last Post: 18 Apr 2011, 03:36 PM
  4. Tip: Turning off the left column.
    By birdoasis in forum General Questions
    Replies: 7
    Last Post: 13 Feb 2008, 04:07 AM
  5. IF statement to turn off left/right column on category page
    By milkyway in forum General Questions
    Replies: 6
    Last Post: 1 Oct 2007, 08:26 AM

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