Home Forums Pro Themes Clean Commerce Pro Revise bread crumbs

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #41184
    rweiss23
    Participant

    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 >> product

    Thanks for your help.
    Roger

    #41204
    wensolutions
    Keymaster

    Hello @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_Themes

    You 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!!

    #41467
    rweiss23
    Participant

    Thanks. Works great.
    I already had a child theme set up, so was a quick update to functions.php

    Roger

    #41515
    wensolutions
    Keymaster

    Hello @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-commerce

    Best Regards!!

    #41593
    rweiss23
    Participant

    I 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,
    Roger

    #41615
    wensolutions
    Keymaster

    Hello @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!!

    #41680
    rweiss23
    Participant

    Thank 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

    #41715
    wensolutions
    Keymaster

    Hello @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!!

    #41766
    rweiss23
    Participant

    Aaah, that’s what I thought.

    Thanks again for your help.
    Roger

    #41852
    wensolutions
    Keymaster

    Hello @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!!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.