• Resolved timsilva_

    (@timsilva_)


    The options for customizing breadcrumbs seem extremely limited.

    I have a site with BuddyPress, bbPress, and WooCommerce all installed. I would like to have logical “foldering” for each page type.

    An article would have:
    Home ? Blog ? Categories ? Article Title

    A forum topic would have:
    Home ? Forum ? Categories ? Category ? Sub Category ? Topic Title

    A store product would have:
    Home ? Shop ? Categories ? Category ? Product Title

    I have this working right now using two other breadcrumb plugins (Breadcrumb NavXT & Breadcrumb Trail) which each handle forums, blogs, and products slightly better, so I am using a conditional statement to use different breadcrumb on different page types right now.

    Instead, I would much rather customize one plugin. Since Yoast SEO has a large userbase, I was hoping that it would be customizable for a non senior-developer but I haven’t found much info yet. Anyone know if what I am describing is feasible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • To get the kind of control you’re talking about, I installed breadcrumbs on my WP site without a plugin. It was just a few snippets of code using this tutorial

    But for what you need, there would be an additional step. You’ll need to dig into the if/else statements in the function (that the tutorial had you add to functions.php). See my comments for where you’ll need to make changes:

    `
    function get_breadcrumb() {
    echo ‘Home‘;
    if (is_category() || is_single()) {

    /* The stuff below happens when it’s a category or a post*/

    echo ”  »  “;
    the_category(‘ • ‘);
    if (is_single()) {
    echo ”   »   “;
    the_title();
    }
    } elseif (is_page()) {

    /* The stuff below happens when it’s a page */

    echo ”  »  “;
    echo the_title();
    } elseif (is_search()) {

    /* The stuff below happens when it’s a search */

    echo ”  »  Search Results for… “;
    echo ‘”‘;
    echo the_search_query();
    echo ‘
    “‘;
    }
    }

    Hope this points you in the right direction.

    Thread Starter timsilva_

    (@timsilva_)

    Thanks for the tips Mike! I suppose doing it custom isn’t such a bad option. It’s a bit complicated so I might need to hire someone to do it. Unfortunately, none of the existing plugins have either the type of organization that I am hoping for, or the ability to be customized in the way that I need.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Breadcrumbs?’ is closed to new replies.