Bread Crumb Modification - by gurhan - on WordPress WooCommerce support

This topic has 14 replies, 5 voices, and was last updated 8 years, 5 months ago ago by Jack Richardson

  • Avatar: gurhan
    gurhan
    Participant
    October 29, 2015 at 08:12

    Is it possible to delete the last section of the bread crumbs. The product name is already on the page, and I would like to take out the last part, which is redundant…

    http://prnt.sc/8wkczf

    Thank you…

    13 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 29, 2015 at 12:05

    Hello,

    You need edit the file wp-content/themes/royal/framework/theme-functions.php in line 3161 and change the code $showCurrent = 1; to $showCurrent = 0;

    Regards,
    Eva Kemp.

    Avatar: gurhan
    gurhan
    Participant
    October 29, 2015 at 12:58

    is it possible to get this done in the child theme? if so, how??

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 29, 2015 at 13:20

    Hello,

    Please copy this file into it saving folder structure like:
    wp-content/themes/royal_child/framework/theme-functions.php and make your changes there.

    Regards,
    Robert Hall.

    Avatar: stan
    Stan Russell
    Participant
    October 29, 2015 at 13:29

    Hello gurhan,

    you need to copy file ‘theme-functions.php’ to royal-child/framework folder, edit it in text editor and include it in child theme according to this manual: https://codex.wordpress.org/Child_Themes#Referencing_.2F_Including_Files_in_Your_Child_Theme

    Regards,
    Stan Russell.

    Avatar: gurhan
    gurhan
    Participant
    October 29, 2015 at 13:38

    here’s what i did

    
          $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 = 0; // 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
    

    but didn’t do the trick –> http://www.beaux-artsclassicproducts.com/shop/arts-and-crafts-grille-rr-209-4×6/

    Avatar: gurhan
    gurhan
    Participant
    October 29, 2015 at 14:08

    here is the file structure –> http://prntscr.com/8wnb7m

    which shows that the ‘theme-functions.php’ is in the right directory… (and I did the mods as I indicated previously…)

    now, what do you mean by “… and include it in child theme according to this manual:???”

    do you mean “include it in the child theme directory???”

    if so, it is done…

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 29, 2015 at 17:58

    Hello,

    Please provide us with FTP credentials.

    Best regards,
    Jack Richardson.

    Avatar: gurhan
    gurhan
    Participant
    November 1, 2015 at 07:43

    any resolution on this matter???

    Avatar: Eva
    Eva Kemp
    Support staff
    November 2, 2015 at 11:39

    Hello,

    You were asked to provide FTP credentials in the previous post.
    Please provide them.

    Regards,
    Eva Kemp.

    Avatar: gurhan
    gurhan
    Participant
    November 2, 2015 at 12:09

    oops… I thought I did…

    here you go…

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 2, 2015 at 19:04

    Hello,

    Previously provided code is mentioned to blog posts. As for products I’ve copied the wp-content/themes/royal/woocommerce/global/breadcrumb.php file to your child directory with the needed changes. Please check the site now.

    Best regards,
    Jack Richardson.

    Avatar: gurhan
    gurhan
    Participant
    November 2, 2015 at 19:40

    all good.. thank you…!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 2, 2015 at 20:24

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

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

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

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