-
For context, I’m using two custom post types (directory listings and posts).
For the directory listing pages, I want to keep the breadcrumbs as is.
For the posts, I’d like to remove the “Home” and “Article Title” from the breadcrumb (so that only the two categories appear: primary + sub-primary)
I’ve tried using CSS to remove the last breadcrumb (Article Title), but I don’t think CSS is the right way to go as the output is not ideal:
.single-post .inside-article .rank-math-breadcrumb .last {
display: none;
}
If you could guide me on which PHP filter to use I would really appreciate it!
The ticket ‘CSS (or PHP) to remove first and last breadcrumb from single posts’ is closed to new replies.