Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Plugin Contributions
    0

    Default Remove categories list from certain pages

    Hi I have found a solution on the forum which puts display none on the stylesheet, which iIdon't want to use. Is it not ideal for accessibility
    Does anyone have a code /non css solution for this
    I need eg if page = contact us or page_2 then do not display the left column category list
    thanks for any guidance...
    ( note i am using the flyout menu for top horizontal nav, so only sub categories display on the left menu )

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: Remove categories list from certain pages

    This tutorial describes how to turn off the entire left/right sidebox for certain pages, and might provide you a starting point for turning off only the categories sidebox on certain pages.

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Remove categories list from certain pages

    Hi..thanks for the reply..but I have been through that tutorial and many others. Disabling left and right is not a problem. It seems that isolating parts of the sidebox are more complex and i can't find a tutorial on that ( apart from display:none on css)

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: Remove categories list from certain pages

    Since it's only the categories side-box that you don't want displayed on the contact_us page, you can edit/create /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php to add:

    Code:
    if ($_GET['main_page'] != FILENAME_CONTACT_US) {
    as the first line after the comments and

    Code:
    }
    as the next-to-last line (just before the >?). That will cause the side-box to be displayed on all pages except contact_us (unless the whole sidebox is disabled).

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

    Default Re: Remove categories list from certain pages

    "isolating parts of the sidebox are more complex and i can't find a tutorial on that"

    Go to Tutorials/FAQ and select the Sideboxes article category. There are three articles on the first page that deal with this exact topic in various ways.

 

 

Similar Threads

  1. v139h Script to remove SSL from certain pages
    By cactusrunning in forum General Questions
    Replies: 9
    Last Post: 21 Mar 2013, 06:00 AM
  2. Remove certain categories/sub categories from sitemap
    By moesoap in forum General Questions
    Replies: 4
    Last Post: 30 Mar 2012, 08:52 PM
  3. Remove titles from certain EZ pages
    By bigbadboy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2008, 03:00 PM
  4. Remove sideboxes from certain pages?
    By chrisj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Aug 2006, 10:40 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