Breadcrumbs x Yoast - by g_ozio - on WordPress WooCommerce support

This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago ago by g_ozio

  • Avatar: g_ozio
    g_ozio
    Participant
    August 16, 2021 at 15:41

    Hello,

    I have a similar question as in this post: https://www.8theme.com/topic/parent-and-1-child-category-showing-in-breadcrumbs/ I read all the answers but I can’t make it work. When I try to replace this section of the code

    if(!function_exists('etheme_breadcrumbs')) {
        function etheme_breadcrumbs() {
        	get_template_part( 'templates/breadcrumbs' );
    
    		return;
        }
    }

    by the one Yoast is providing but I can’t figure out where to put it 🙁 I saw in https://www.8theme.com/topic/yoast-breadcrumbs/ which files to edit but…
    Whatever I do, it’s still your breadcrumbs that is showing (or I get an error on the website). Nothing wrong with yours but our products are in several categories and the WP default sorting doesn’t suit us. I’m really sorry to bother you with that but I spent the day on this problem and can’t get it solved by myself :/

    2 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    August 17, 2021 at 16:50

    Hello,

    1) This code is responsible for posts/pages breadcrumbs

    function etheme_breadcrumbs() {
        	//use_your_custom_code_for_the_function_here;
        }

    You need to copy mentioned function to child theme fucntions.php and edit it according to your needs.

    2) Products use the /xstore/woocommerce/global/breadcrumb.php. So, copy this file to /xstore-child/woocommerce/global/breadcrumb.php and edit the file code according to your needs.

    Regards

    Avatar: g_ozio
    g_ozio
    Participant
    August 18, 2021 at 13:54

    Thank you for your help! You’re amazing.

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

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

Helpful Topics

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