I am using Yoast WordPress plugin and the breadcrumb function that it provides. It works great, but I want to modify the default structure and to add an additional class.
So instead of:
<a href="http://www.example.com" rel="v:url" property="v:title">Home</a>
I want to make it:
<a href="http://www.example.com" class="my-class" rel="v:url" property="v:title">Home</a>
3
Answers
Try Below Code in your function.php file in which you can add custom class to breadcrumb.
Your comment works.
If you need to add a breadcrumb name specific CSS class to each link, you could use the fallowing: