Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Removing breadcrumbs from certain pages...

    Now, I remember I was once able to do this, but I've forgotten how (unless ZenCart files have changed)!

    I'm trying to remove the breadcrumbs from my privacy policy, terms and conditions and contact us page.

    Last time I remember opening up the tpl files and commenting out the breadcrumbs php code. However, I can't find the code anymore! :|

    Anyone able to point me in the right directions, please?

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

    Default Re: Removing breadcrumbs from certain pages...

    The call for the breadcrumbs happens in tpl_main_page.php. If your template has separate copies of it for the privacy etc pages, you would find them under the appropriate subfolders.

    Alternatively, you can test for $current_page_base == privacy etc, and skip the breadcrumb display if true. See the comments at the top of tpl_main_page.php for more info.
    PHP Code:
    if(!$current_page_base == 'privacy' and !$current_page_base == 'terms etc') {
      
    //breadcrumb code here will be executed

    (the ! means "not".)

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Removing breadcrumbs from certain pages...

    You don't have to code for it- you can use the CSS ...


    #PAGE_ID .breadCrumb { display: none;}

  4. #4
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Removing breadcrumbs from certain pages...

    "Excellent"

    Thanks for the replies guys.

    I'll probably go down the CSS route, as it's nice and simple.

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

    Default Re: Removing breadcrumbs from certain pages...

    Thanks, Kim, that's way better! Now how come that answer has never been given for this question before, by those who know? Or is this (nearly) the only variant of the question it will work for?

  6. #6
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Removing breadcrumbs from certain pages...

    Quote Originally Posted by Kim
    You don't have to code for it- you can use the CSS ...


    #PAGE_ID .breadCrumb { display: none;}
    Just tried this and it didn't work.

    I tested it out on the Advanced Search page by adding the following code to the end of my stylesheet.

    Code:
    #advSearchDefault .breadCrumb { display: none;}
    Any ideas?

  7. #7
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Removing breadcrumbs from certain pages...

    If you mean the navBreadCrumb in the centerColumn of the Advanced Search Page. Sometimes it need to find the exact items in your page after the hints. And #advSearchDefault is under the #navBreadCrumb, and you can't override it.


    Try the following.
    Code:
    #advancedsearchBody #navBreadCrumb {
    	display: none;
    }
    Last edited by seethrou; 1 Oct 2006 at 08:52 AM. Reason: Added more info.
    A New Starter again

  8. #8
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Removing breadcrumbs from certain pages...

    That did the trick! Thanks for the help. :)

  9. #9
    Join Date
    Nov 2008
    Location
    London
    Posts
    94
    Plugin Contributions
    0

    css problem Re: Removing breadcrumbs from certain pages...

    Quote Originally Posted by Kim View Post
    You don't have to code for it - you can use the CSS ...


    #PAGE_ID .breadCrumb { display: none;}

    I'd like to use this method to position the breadcrumbs differently on my product info pages (to the left of the image) but can't seem to get the right page id. I've tried..
    Code:
    .productGeneralBody #navBreadCrumb{}
    .productGeneral #navBreadCrumb{}
    #productGeneralBody #navBreadCrumb{}
    #productGeneral #navBreadCrumb{}
    evidently I'm not hitting the nail on the head. Does anyone know the correct page id for the product pages, and also perhaps the category pages?
    Last edited by beep; 1 Oct 2010 at 06:09 PM. Reason: typo

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

    Default Re: Removing breadcrumbs from certain pages...

    You need to look at the page body id for Kim's suggestion. In this case, it's #productinfoBody.

    Look in view source, or get Firefox and its Web Developer or Firebug extensions; they are vital tools for editing page styling.

    The category listing page shares an id with the product listing page, so you can't use this method to single it out. You can do it with Smart Backgrounds from Free Addons.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Removing product title from breadcrumbs: Last category link breaks!
    By Feznizzle in forum General Questions
    Replies: 3
    Last Post: 19 Jun 2013, 04:49 PM
  2. Removing the columns on certain pages.
    By retched in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jun 2010, 12:06 PM
  3. Help Removing Breadcrumbs from Login and Checkout Pages
    By limelites in forum General Questions
    Replies: 3
    Last Post: 29 May 2009, 06:17 PM
  4. Removing Images From Product Pages without removing them from Category Pages
    By googlepasta in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 5 Jan 2008, 04:06 PM
  5. Removing breadcrumbs from main cat pages
    By magicpants in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2006, 12:13 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