Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default How to disable Categories side box on certain pages

    I posted this under general questions, but this is probably the better place.

    Can anyone tell me how to disable the Categories sidebox on certain pages like the About Us or Privacy Policy pages?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to disable Categories side box on certain pages

    Look at css per page ... instructions in the /css/readme file
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to disable Categories side box on certain pages

    You can also control this with overrides on the sideboxes if you are more comfortable with code ...

    Peek at the various sideboxes in:
    /includes/modules/sideboxes

    to see how this is done with many of them ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Re: How to disable Categories side box on certain pages

    Ajeh, can you be a little more specific... If you look at the following link it may be easier to explain.

    I am trying to build out a Help Desk section. Basically, when you are on this page or any of the others I decide I do not want to show the categories sidebox.

    http://74.52.136.194/~onlinefa/store...ayment_options

    I simply want to show the Information box on the left (which I will later rename to Help Desk). I would like to do this only on certain pages, not the entire site.

    Thanks again for your help.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to disable Categories side box on certain pages

    You need to build some conditions as to when to show the sidebox or when not to ...

    For example, in the categories sidebox you could copy the files to your templates and overrides directory as all good zenners do ...

    Then add some code such as:
    PHP Code:
        $show_categories true;
        if (
    in_array($_GET['main_page'], array(FILENAME_LOGOFFFILENAME_LOGINFILENAME_PRIVACYFILENAME_CONTACT_USFILENAME_CONDITIONSFILENAME_SHIPPING))) {
          
    $show_categories false;
        } else {
          
    $show_categories true;
        }

    if (
    $show_categories == true) {
    // blah blah all code here that is already there
    // blah blah all code here that is already there
    // blah blah all code here that is already there
    // eof: $show_categories == true 
    My example is based on the page names for where I am at
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Re: How to disable Categories side box on certain pages

    Awesome... Thank you so much. I have got this working on localhost based on the code you provided.

    Thanks again.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to disable Categories side box on certain pages

    You are most welcome ... glad that this custom code was able to work for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. How do I disable hidden side box feature in zj black template?
    By Liamv in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2010, 08:19 PM
  2. How do I disable certain columns in for certain pages?
    By francocauter in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Feb 2008, 05:32 PM
  3. How to disable Categories side box on certain pages
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 8 Jul 2007, 04:43 AM
  4. disable side box column for ez-pages
    By subb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Dec 2006, 09:07 PM

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