Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Thanks so much for taking the time to write all of that out. So, just to reiterate what I hear you saying: you only want to show the last child category in the breadcrumb instead of all parent categories. Does that sound, right? We want to make sure we are both on the same page before moving forward. Let us know if we misunderstand anything.

    While we don’t have a solution for this, you can achieve this by using the custom implementation. You can find some example code given here that will help you to modify the Yoast SEO breadcrumb based on your needs.

    Thread Starter david78987

    (@david78987)

    Hello, not quite. Rather, we need to remove the parent URL from the child URL. We need to change this https://dev.socialpronow.com/blog/category/general-social-skills/making-conversation/

    into this:
    https://dev.socialpronow.com/blog/category/making-conversation/

    There’s no support in WP’s permalinks setting for this.

    So we need some type of script that say “When a child category is linked to, remove the parent category from its URL”

    @david78987

    In order to accomplish your goal, you will need to edit single links in the Yoast breadcrumb pathway. You will need to create some custom code based off our snippets here: https://gist.github.com/amboutwe/4b7a2f01366399281a53c355c5b78801.

    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 2 weeks 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove parent category from breadcrumb url’ is closed to new replies.