Zen Cart How To Remove ‘Home’ From the Middle Column – Part Two

Welcome to the second and final part of our easy help zen cart tutorial on how to remove the ‘home’ from the middle column of your main page. In this half, we will be showing you how to change the breadcrumb status if you are using zen cart version 1.3.0 or higher.

First, find this code:


<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->

And change it to:


<!-- 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 -->

For Version 1.3.5 and higher change it to:


<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' && !$this_is_home_page) { ?>    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->

After you’ve made the appropriate changes, save the file to includes/templates/CUSTOM/COMMON/tpl_main_page.php, and upload it to your server.

In Version 1.3.7, it should be noted that the code to turn off the breadcrumbs on the main page is already there by default, so all you have to do is select an option in your admin. Go to the zen cart admin, and navigate to configuration -> layout settings -> define breadcrumb status. You will see the options, ‘off, on, off on home page only’. Select the one you want and save your changes.

If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design, or to have a fantastic new custom design custom tailored to fit your needs and preferences. We can also offer you help with module installation, wordpress integration, or a full zen cart upgrade.

zen cart plus picaflor azul equals success