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
Administrator

Posts

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

Post by letxobnav » Thu May 23, 2019 11:18 pm

eh, no you don't, model has nothing to do with this.

the easy fast way is just the twig files which do the displaying, the slower but more thorough way also includes the controllers which construct the breadcrumbs.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Qphoria » Fri May 24, 2019 4:50 am

You could also just simply hide it with css

Code: Select all

.breadcrumb {display:none; }
Or another non-permanent way would be to use vQmod or ocmod.
Match catalog/controller/*/*.php (error="skip")
and find a common tag that all controllers use:

Code: Select all

$data['column_left'] =
before, add:

Code: Select all

$data['breadcrumbs'] = array();

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: Google [Bot] and 382 guests