Home › Forums › Pro Themes › Clean Commerce Pro › Revise bread crumbs
Tagged: bread crumb, woocommerce
- This topic has 9 replies, 2 voices, and was last updated 7 years, 6 months ago by wensolutions.
-
AuthorPosts
-
May 1, 2017 at 3:03 pm #41184rweiss23Participant
Hi,
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.Example:
bread crumb: shop >> category >> productThanks for your help.
RogerMay 2, 2017 at 12:57 am #41204wensolutionsKeymasterHello @rweiss23,
In order to add the shop at the beginning you have to create and activate the child theme.
Child theme references :
https://codex.wordpress.org/Child_ThemesYou can also create the child theme using the plugin and below is link to one of them:
https://wordpress.org/plugins/wp-child-theme-generator/After creating the child theme in your child themes functions.php file include below given code:
https://gist.github.com/anonymous/a57680b3e80ea339cd03fe0c3a7e5232
Also make sure you have latest version of the Woo commerce.
Hope this helps.
Best Regards!!
May 2, 2017 at 11:33 am #41467rweiss23ParticipantThanks. Works great.
I already had a child theme set up, so was a quick update to functions.phpRoger
May 2, 2017 at 11:27 pm #41515wensolutionsKeymasterHello @rweiss23,
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:-
https://wordpress.org/support/view/theme-reviews/clean-commerceBest Regards!!
May 3, 2017 at 2:29 pm #41593rweiss23ParticipantI did add a positive review.
Quick question:
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.
Any suggestions?Thanks,
RogerMay 4, 2017 at 12:29 am #41615wensolutionsKeymasterHello @rweiss23,
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 #41680rweiss23ParticipantThank you.
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
—————————-Roger
May 5, 2017 at 12:42 am #41715wensolutionsKeymasterHello @rweiss23,
You need to copy the entire code of the function “clean_commerce_site_branding()” to the child themes functions.php file i.e
https://gist.github.com/anonymous/2d7e65140d8da70360739cf6ae24cf55
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 #41766rweiss23ParticipantAaah, that’s what I thought.
Thanks again for your help.
RogerMay 6, 2017 at 11:55 pm #41852wensolutionsKeymasterHello @rweiss23,
Glad that we could help with your issues .
As mentioned in the earlier reply, if you have any query further we are always here for you .
Best Regards!!
-
AuthorPosts
- You must be logged in to reply to this topic.