Tagged: breadcrumbs
Hi, I notice that the breadcrumbs seems to always put the home page as the first part of the breadcrumbs even when I select a page that has no parent.
I selected the home page and blog options in the Enfold settings.
A parent page, called “Courses”, now displays the breadcrumbs like this: home/courses – it should only say courses
The blog page does this: home/blog/blog to display the blog page. When I click on a post it displays it like this: home/blog/blog/post instead of simply “blog/post”
How can I set the breadcrumbs so that it follows my structure correctly. Please note, the “courses” page is NOT a child of “home”, its status is “no parent”.
Plugins: WPML and No Category Base (to get rid of “category” permalink in posts)
Hi lernerleben!
It doesn’t matter if it’s a child or not, the home link will always display. Your wanting to remove it? Add this to your custom CSS.
.breadcrumb-trail > *:nth-child(2), .breadcrumb-trail > *:nth-child(3) {
display: none;
}
Cheers!
Elliott
Thanks for the code.