Change breadcrumbs - by procession - on WordPress WooCommerce support

This topic has 6 replies, 4 voices, and was last updated 9 years, 2 months ago ago by Robert Hall

  • Avatar: procession
    procession
    Participant
    September 18, 2015 at 13:24

    Hi,

    Can I adjust the woocommerce breadcrumbs to remove the current page, so the current page is only shown in the heading below. Example https://www.8theme.com/demo/woopress/kids/product/fashion-demo-18/

    Home / Kids / Fashion Demo changes to Home / Kids
    Fashion Demo Fashion Demo

    5 Answers
    Avatar: Brian Johnson
    Brian Johnson
    Member
    September 18, 2015 at 13:35

    Hello

    Do you want to remove word “kids”?

    Regards,
    Brian Johnson

    Avatar: procession
    procession
    Participant
    September 18, 2015 at 13:38

    Hi,

    No i want to remove Fashion demo i.e the current page name.

    Avatar: stan
    Stan Russell
    Participant
    September 18, 2015 at 13:51

    Hello,

    you need to edit file woopress\framework\theme-functions.php, find there function

     if(!function_exists('etheme_breadcrumbs')) {
        function etheme_breadcrumbs() {
          $showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show
          $delimiter = '<span class="delimeter">/</span>'; // delimiter between crumbs
          $home = __('Home', ETHEME_DOMAIN); // text for the 'Home' link
          $blogPage = __('Blog', ETHEME_DOMAIN);
          $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show
          $before = '<span class="current">'; // tag before the current crumb
          $after = '</span>'; // tag after the current crumb

    and change part $showCurrent = 1; to $showCurrent = 0;

    To avoid possibility of breaking theme we recommend you to make this customization in Child theme.
    Read here more about it: https://codex.wordpress.org/Child_Themes

    Regards,
    Stan Russell.

    Avatar: procession
    procession
    Participant
    September 18, 2015 at 13:58

    Thanks Stan,

    That’s exactly what I was looking for, Cheers.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 18, 2015 at 14:00

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Change breadcrumbs’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.