• Resolved miaxonline

    (@miaxonline)


    Hi Yoast team,

    Thank you for all of your work for the WP community, you are true digital heroes!

    I have a question which I couldn’t find the answer to after roughly 30min searching and reading.

    I’d like to remove the child category from the breadcrumbs and only show Parent categories.

    We have selected multiple categories for posts and show these in the category archives.
    We also chose parent categories to show of the hierarchy. We only do not want al categories in the breadcrumbs but only the parent category, chosen for each post.

    Is this something we need to add in functions.php and if yes; would you perhaps have some code available for us?

    Many thx!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Yoast does not have a built in feature which automatically removes child categories from the breadcrumbs. However, we do have some breadcrumb filters like wpseo_breadcrumb_single_link that you will need to use to build out a custom code solution that can remove those items from the breadcrumb category. This guide explains more: https://yoast.com/help/implement-wordpress-seo-breadcrumbs/#pathway.

    Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    We highly recommend checking out?our list of Yoast Partners here https://yoast.com/yoast-partners/ in case you are in need of development.

    We will also keep this issue open for 1 week in case someone from the community can help. Perhaps a developer watching these forums can assist further. After which, we will close in order to keep the overview.

    Thread Starter miaxonline

    (@miaxonline)

    Ok great thx, will code it with some help and post my code here for others to find! Thx mate!

    Plugin Support devnihil

    (@devnihil)

    @miaxonline Thanks for your reply and we do appreciate it if you’re able to post your solution here for other users.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove child category from breadcrumbs’ is closed to new replies.