14 Years in Ecom SEO233+ Store Experience★★★★★ 4.98/5 (50+ Reviews)No Long-Term Contracts

Your Cart

Is your cart looking like this?

Most independent stores have the products, but they don't have the visibility. If your customers can't find you, they can't add to cart.

Search Visibility
15%

Your competitors are at 85%+

Want more customers adding to cart?

Contact me today to see why your competitors are outranking you.

Contact Me
Home › Opencart› Edit The Opencart Homepage Breadcrumb

Edit The Opencart Homepage Breadcrumb

So by default, the homepage breadcrumb in Opencart points to this url:

http://domain.com/index.php?route=common/home

Now this isn’t ideal from an SEO perspective, as we want all of the internal links to point to our proper root domain url, which would be:

http://domain.com

So to do this, We have to edit the seo_url.php file, which is found here: /catalog/controller/common/seo_url.php

Find the line:

return $link;

And before it, add this line:

$link = str_replace('index.php?route=common/home', '', $link);

This will fix all of the homepage breadcrumbs to point to the proper root domain url.

Change The Opencart Homepage Breadcrumb Link Text

Sometimes we might want to link with some text that’s a little more SEO friendly than just “home”, or maybe your shop is on a sub-domain or sub-directory and you want to label it with a different name.

So to edit this homepage breadcrumb link, edit the file header.php, in /catalog/language/english/common/header.php

You need to edit the line:

$_['text_home'] = 'Home';

Replacing the word “Home” with the text you want to link to the homepage with. In our example we’ve changed it to this:

$_['text_home'] = 'Digital Products';

Editing the opencart breadcrumb text

If you have any questions about this, then feel free to leave them in the comments. Share the guide with your friends if you enjoyed it!

Written by Matt Jackson

E-commerce SEO expert, with over 10 years of full-time experience analyzing and fixing online shopping websites. Hands-on experience with Shopify, WordPress, Opencart, Magento, and other CMS. Need SEO help? Email me for more info, at info@matt-jackson.com