Post by FCWC » Wed Aug 15, 2018 4:55 am

How to remove breadcrumb V3.x entirely and also individual pages?
(for those people looking just for that)
Every solution I found was for 2.X not for 3.x
From what I did find I assumed I would need to edit product.twig via the theme editor
Removing

Code: Select all

 <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %}
    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
    {% endfor %}
  </ul>
  
did nothing

Also this wouldn't remove it from the other pages anyway.
Assume once I figure this out I will understand how to also remove Category from product page as well.

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am

Post by Dreamvention » Wed Aug 15, 2018 9:38 pm

Hi

Opencart defines for every page their breadcrumbs separately. So if you went into catalog/view/theme/DEFAULT (i assume you ar editing the default theme)/ template/catalog/product.twig and simply deleted the breadcrumbs codde, then this will delet it only for products.

you will need to repeat this for all other pages like product/category, product/special, product/search, information/information, information/contact ...

also, remember to refresh the cache of your twig. it is located in admin/dashboard top right corner. in the popup click the orange button to refresh cache.

Many OpenCart users struggle to find quality extensions. We know how frustrating the need to fix the shop is just because of one poorly coded extension. We created quality OpenCart Extensions, tested by real developers and provide professional support.

AJAX QUICK CHECKOUT - #1 one-page checkout solution
VISUAL DESIGNER - Page builder for Opencart
View more extensions here

Tested by Shopunity.net


User avatar
New member

Posts

Joined
Sun Jun 17, 2012 7:04 pm
Location - Europe
Who is online

Users browsing this forum: No registered users and 17 guests