Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Removing "Home" from main page


    I'd like to remove the Home from "Only" the first main page.

    Can't seem to find the place or settings to change this.

    tpl_index_default.php only allows editing UNDER that item.

    hope someone can help me out, seems so simple

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Removing "Home" from main page

    If your using v1.3.0.1

    In YOUR_TEMPLATE -> common -> tpl_header.php

    find this
    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    and replace it with
    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
      <?php if ($current_page!='index') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php } ?>
    This will remove HOME on the main page only

    --------

    Sorry you meant the breadcrumb I'll post again with the code for that.
    Last edited by clydejones; 13 May 2006 at 08:09 AM.

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Removing "Home" from main page

    Here the code to remove the breadcrumb on the main page only

    in YOUR_TEMPLATE -> common -> tpl_main_page.php fine

    Code:
    <!-- bof  breadcrumb -->
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    
    <!-- eof breadcrumb -->
    and replace it with

    Code:
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?>    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    This removes the breadcrumb on the main page only

  4. #4
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Removing "Home" from main page

    thanks so much i figured out why I didn't even have a tpl_main_page.php

    I am customizing my own template and i copied files from classic instead of from template_default


    anyways thanks so much for your time =D

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Removing "Home" from main page

    Not at all, glad to be of help

  6. #6
    Join Date
    Nov 2004
    Posts
    80
    Plugin Contributions
    0

    Default Re: Removing "Home" from main page

    Quote Originally Posted by clydejones
    Here the code to remove the breadcrumb on the main page only

    in YOUR_TEMPLATE -> common -> tpl_main_page.php fine

    Code:
    <!-- bof  breadcrumb -->
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    
    <!-- eof breadcrumb -->
    and replace it with

    Code:
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?>    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    This removes the breadcrumb on the main page only

    Any idea how you would modify this to remove it from the top level category page too? I have mine open directly in a category so no point in having that in the breacrumb either. Thanks!

  7. #7
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Removing "Home" from main page

    i'm really new to zencart but i might be able to help if i understood you...

    any chance for a screen shot? not exactly sure where or what you are refering to

  8. #8
    Join Date
    Sep 2005
    Posts
    95
    Plugin Contributions
    0

    Default Re: Removing "Home" from main page

    Question: How would you do the opposite? Like you have something that you want to show only on a particular page and not any where else.

    Thanks!
    Zen-Cart, The Greatest Shopping Cart&#33;

  9. #9
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Removing "Home" from main page

    Quote Originally Posted by GearStudios
    Question: How would you do the opposite? Like you have something that you want to show only on a particular page and not any where else.

    Thanks!
    I believe you can just edit the individual page.

    Each page has a unique template kinda not counting the header and footer.

    If your making your own template, make sure you copy everything over.

    Check the folders "Common" and template" should have most of them.

  10. #10
    Join Date
    Sep 2005
    Location
    Malmö, Sweden
    Posts
    120
    Plugin Contributions
    4

    Default Re: Removing "Home" from main page

    Works like a charm, but it also removes the breadcrumb for the Manufacturers page... Is there any way I can remove it on the front page but keep it on the Manufacturers page?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Removing text "Home" from the home page
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2011, 03:31 PM
  2. Removing "New Products For..." from main page
    By netentry in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Mar 2010, 09:20 PM
  3. Removing "Home" and "Login" from header.
    By damon.vit in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jan 2008, 12:05 AM
  4. Removing "New Products for ..." from Main Page
    By amirey in forum Basic Configuration
    Replies: 9
    Last Post: 23 Oct 2007, 05:05 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