Thanks for any advice.
I say this because if you really want to remove the breadcrumbs, you will have to edit most of the .tpl template files
I don't think that breadcrumbs is usefull. They will cause extra internal links which can lead to bad SEO, if your page has too many internal links. The last part has link to itself. I've read that it isn't healthy for SEO. Rather I want to remove whole breadcrumbs from all sites, or at least removing last part of trailer in breadcrumbs. I can start with category and product pages. How can I do removing last part or whole trailer of breadcrumbs?uksitebuilder wrote: ↑Sat Feb 18, 2017 1:26 amWhat appears to be the issue ?
I say this because if you really want to remove the breadcrumbs, you will have to edit most of the .tpl template files
edit the appropriate tpl file and delete
Code: Select all
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
It works. Removing this code from tpl files will remove whole breadcrumbs. How can I remove only the last part of breadcrumbs trailer?uksitebuilder wrote: ↑Sat Feb 18, 2017 2:57 amTo remove all breadcrumbs
edit the appropriate tpl file and deleteCode: Select all
<ul class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> <?php } ?> </ul>
Code: Select all
<ul class="breadcrumb">
<?php array_pop($breadcrumbs); foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
Code: Select all
display:none
Code: Select all
/* breadcrumb */
.breadcrumb {
margin: 0 0 20px 0;
padding: 8px 0;
border: 1px solid #ddd;
display:none;
}
RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.
Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't.
display:none can still be read by the major search engines and also adds to the overhead, albeit only a small amount in this instance.
This will lead to seriously SEO issue, if you hide some text and links. Google will hate that, because it thinks that you want to trick users.rgbworld wrote: ↑Sun Feb 19, 2017 2:03 amYou could remove the breadcrumb via CSS by addingFile: catalog/view/theme/default/stylesheet/stylesheet.cssCode: Select all
display:none
Code: Select all
/* breadcrumb */ .breadcrumb { margin: 0 0 20px 0; padding: 8px 0; border: 1px solid #ddd; display:none; }
I did review the SEO concerns regarding the use of display:none. Google and other search engines will give hidden content way less ranking. Content should only be hidden if there is a user method to show/hide that content.
Thanks for the feedback. Apologies for suggesting a bad practice.
RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.
Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't.
https://www.opencart.com/index.php?rout ... search=dsm
In SEO Module Url we gave a large portion to breadcrumbs. We have added SEO friendly urls to products, which remove the path var, thus removing the breadcrumbs trail. but we still need breadcrumbs. Google uses them to create the snippet and its a good practice to show the visitor a structure as well as google. Removing breadcrumbs is not an option, changing them dynamically is even worse.
so we implemented this option:
http://joxi.ru/Y2LYwdnU9eNNXA
by setting a default path to the product, the breadcrumbs are always available, they a constant.
We are also preparing SEO Module Mircoformats that will take care of microformats for breadcrumbs and remove the last link to the same page. to be continued...
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
I have tried this. But it doesn't have any effect. The whole trailers of breadcrums don't exist.uksitebuilder wrote: ↑Sat Feb 18, 2017 4:55 pmYou can try with this instead:Code: Select all
<ul class="breadcrumb"> <?php array_pop($breadcrumbs); foreach ($breadcrumbs as $breadcrumb) { ?> <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> <?php } ?> </ul>
This breadcrumb can be remove by edit each view file.
Or you can hire some developer to create a ocmod or vqmod extension to add functionality to remove the breadcrumb.
By ocmod or vqmod your core files will not change.
Thanks
Harsh Kumar
hkdev1987@gmail.com
Best Regards
Harry Kumar
hkdev1987@gmail.com
skype : hk.dev
Also because breadcrumbs are not responsive and breaking the mobile template. really looking unprofessional
please give the path to the exact file in directory.
thanks
works nicely QUote:>>>>>
<ul class="breadcrumb">
<?php array_pop($breadcrumbs); foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
Users browsing this forum: No registered users and 59 guests