May 1, 2017 at 3:03 pm #41184
Currently, the breadcrumbs in the (woocommerce) Shop include the category and product.
I would like to add “shop” to the beginning so a user could also click on shop to see all products.
bread crumb: shop >> category >> product
Thanks for your help.
RogerMay 2, 2017 at 12:57 am #41204
In order to add the shop at the beginning you have to create and activate the child theme.
Child theme references :
You can also create the child theme using the plugin and below is link to one of them:
After creating the child theme in your child themes functions.php file include below given code:
Also make sure you have latest version of the Woo commerce.
Hope this helps.
Best Regards!!May 2, 2017 at 11:33 am #41467
Thanks. Works great.
I already had a child theme set up, so was a quick update to functions.php
RogerMay 2, 2017 at 11:27 pm #41515
Nice to know that the problem has been solved. If there are any further query, then, please feel free to post them.
We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
Best Regards!!May 3, 2017 at 2:29 pm #41593
I did add a positive review.
I tried to override /inc/hook/custom.php by putting a revised copy in my child theme using the same path.
Woocommerce lets you do that and I was hoping your theme did too.
I don’t want to change the copy in the ccpro directory since it will get over ridden when I update the theme.
RogerMay 4, 2017 at 12:29 am #41615
WordPress only allow you to overwrite the default template file and You don’t need the inc folder in your child theme . You just have to copy the function(s) you want to override from your parent and paste it into your child theme.
So let us know the function you want to overwrite in child theme and we can help you on this .
Regarding Woo Commerce, it also have its own template file that can be overwritten in the child but not all file.
Hope this helps.
Best Regards!!May 4, 2017 at 9:54 am #41680
In custom.php, its clean_commerce_site_branding()
Here is my revision:
<li class=”cart-price”>” >
<li class=”cart-icon”>” ><?php echo wp_kses_data( WC()->cart->get_cart_contents_count() );?> items
RogerMay 5, 2017 at 12:42 am #41715
You need to copy the entire code of the function “clean_commerce_site_branding()” to the child themes functions.php file i.e
Here you can make the necessary changes save them. After activating the child theme you will be able to see the changes at front end .
If you have any confusion further, please let us know.
Best Regards!!May 5, 2017 at 10:02 am #41766
Aaah, that’s what I thought.
Thanks again for your help.
RogerMay 6, 2017 at 11:55 pm #41852
- You must be logged in to reply to this topic.