Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    66
    Plugin Contributions
    0

    Default No Right Sideboxes On Main Page ?

    Hi, I am trying to set up my store so that the main page has all the sideboxes on the left side (so I can use the space on the right for other stuff). I switched all the sideboxes to the left side in admin but it still doesnt allow me to use the empty space on the right (where any sideboxes set to "right" would go).

    How can I achieve this? And how can I set it up for only the main page?

    Thanks in advance!

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

    Default Re: No Right Sideboxes On Main Page ?

    Configuration > Layout Settings > Column Right Status - Global.

    Turning the right column off for the home page only is a relatively simple edit in /includes/templates/your_template/common/tpl_main_page.php. Follow the instructions in the comments at the top to add
    if ($this_is_home_page) {
    $flag_disable_right = true;
    }

    However, this will not switch boxes from left to right, it will simply disable any that are set for the right. Having certain boxes on the left for the home page and on the right for other pages is a more complex bit of coding.

    You might best accomplish it by having a separate copy of tpl_main_page.php for the home page, in a /your_template/index_home/ folder. In that copy, you could move the code that displays #navColumnTwo up so it executes just after #navColumnOne, and in the same <td>. You would not disable #navColumnTwo.

  3. #3
    Join Date
    Dec 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: No Right Sideboxes On Main Page ?

    I am still new to zen cart, I am using the classic template and I dont have a common folder in the classic template folder. Do I just copy the common folder from the template default folder?

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

    Default Re: No Right Sideboxes On Main Page ?

    You don't want to copy the whole /common/ folder with its contents to /classic/.

    You want to create a new /common/ folder in /classic/ and copy tpl_main_page.php into it, then edit that copy.

    You should also look at the FAQ/tutorials on creating a custom template so your changes are safe when you upgrade to a new version.

  5. #5
    Join Date
    Dec 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: No Right Sideboxes On Main Page ?

    Got it, thanks guys!

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: No Right Sideboxes On Main Page ?

    ... and before doing that PLEASE set up a custom template or you will lose all the customizations you are making.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Sideboxes gone from right side on main page only
    By icklebits in forum Basic Configuration
    Replies: 17
    Last Post: 26 Nov 2009, 03:30 PM
  2. Right sideboxes on main pages only
    By ctcentralinfo in forum General Questions
    Replies: 4
    Last Post: 5 Aug 2008, 10:25 PM
  3. right sideboxes not showing up on product page
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2008, 08:30 PM
  4. Right Sideboxes disappeared from main page only.
    By mirael in forum Basic Configuration
    Replies: 1
    Last Post: 27 Aug 2007, 08:39 AM
  5. Padding - main page and right sideboxes
    By CreativeWitch in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Sep 2006, 06:31 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