Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Disable Right Column on Specific Pages

    Hi,

    I will be installing the Recently Viewed mod. My site will default to 2 columns (narrow column left, page content right). After a visitor views a product, the right hand column will appear.

    This is all good, precisely what I want.

    However I do not want the right column to appear on my EZ pages.

    I was able to get rid of Bread Crumbs by adding a bit of inline CSS to the source of my EZ pages:
    Code:
    <style type="text/css">#navBreadCrumb{ display: none; }
    </style>
    Is there a simple way to do the same with the right column? Perhaps by changing "navBreadCrumb" to something else? While *not* having the width of the EZ page change? If the width of the page changes, maybe there is some CSS to force it to remain the normal width?

    I noticed this in Admin/Conf/Layout:
    Column Left Status - Global
    Show Column Left, unless page override exists?
    0= Column Left is always off
    1= Column Left is on, unless page override
    This seems to suggest a way to override exists. Is there a simple code solution that could be pasted into EZpage source instead of the css method?

    Thanks!


    Forgot! This is a fresh install of a zc154.
    Last edited by Feznizzle; 30 Jun 2015 at 07:12 PM. Reason: Woops!

  2. #2
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Disable Right Column on Specific Pages

    Problem solved by simply using the optional centerbox method built into the mod. I'd prefer it in a sidebox on the right, but whatev...

    Thanks.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Disable Right Column on Specific Pages

    If css methodology is desired/acceptable you can generate a css file for specific pages/page types. The information related to this is in includes/templates/template_default/css/CSS_read_me.txt.

    As to sizing/resizing, the remaining window sizes to what is displayed, so if the right side window is not displayed, I would think that the center would expand to fill it...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Disable Right Column on Specific Pages

    Awesome, thanks for the tip!

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Disable Right Column on Specific Pages

    Quote Originally Posted by Feznizzle View Post
    However I do not want the right column to appear on my EZ pages.
    This may help:

    Admin > Configuration > EZ-Pages Settings > EZ-Pages Pages to disable right-column

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Disable Right Column on Specific Pages

    Quote Originally Posted by frank18 View Post
    This may help:

    Admin > Configuration > EZ-Pages Settings > EZ-Pages Pages to disable right-column
    And another thing (re)learned. :) that does what is identified above in the original post. Does require "keeping" up with which sideboxes become newly activated, but truly once a "general" scheme is established there are likely few changes necessary. Does help to "remember" this feature when related issues are identified by other zenners. Good spot and thank you!
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Disable Right Column on Specific Pages

    Quote Originally Posted by frank18 View Post
    This may help:

    Admin > Configuration > EZ-Pages Settings > EZ-Pages Pages to disable right-column
    Awesome!!! How on earth did I miss that!

    Can I do the same thing on the index page?

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Disable Right Column on Specific Pages

    Quote Originally Posted by Feznizzle View Post
    Awesome!!! How on earth did I miss that!

    Can I do the same thing on the index page?

    Open includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    Find

    Code:
    if (in_array($current_page_base,explode
    add to array: main_page

    Code:
    $flag_disable_right = true;

  9. #9
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Disable Right Column on Specific Pages

    Oops - my bad!

    cancel my post above... had a mental nap

    Open /includes/modules/sideboxes/YOUR_SIDEBOX_NAME.php

    Just below

    PHP Code:
    // test if box should display 
      
    $show_YOUR_SIDEBOX_NAME true
    add

    PHP Code:
    if ($this_is_home_page) {
    $show_YOUR_SIDEBOX_NAME false;


  10. #10
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Disable Right Column on Specific Pages

    Thanks, Frank!

 

 

Similar Threads

  1. v151 disable right column only in Category page
    By asdfwen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jun 2013, 04:52 AM
  2. Disable Banners On Specific Pages
    By PatF in forum Basic Configuration
    Replies: 3
    Last Post: 1 Sep 2011, 05:07 PM
  3. Right Column Sideboxes not staying to the right on some pages
    By kdays in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2010, 09:53 PM
  4. disable right column background only on product_info
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2009, 12:09 AM
  5. Disable Right Column for Wordpress pages
    By rainthebat in forum General Questions
    Replies: 0
    Last Post: 14 Aug 2008, 10:47 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