[Plugin: WordPress SEO by Yoast] Markup to match Twitter Bootstrap
-
Hi Folks –
Trying to figure out how to edit the markup on the breadcrumbs so that it matches the markup of Twitter’s Bootstrap framework for breadcrumbs. I can add the unordered list
<ul></ul>
using the prefix variable$prefix
, however, I cannot figure out how to wrap the anchor links in list item elements<li></li>
, as well as adding theclass="active"
to the last child as shown below:<ul class="breadcrumb"> <li> <a href="#">Home</a> <span class="divider">/</span> </li> <li> <a href="#">Library</a> <span class="divider">/</span> </li> <li class="active">Data</li> </ul>
What I currently have looks like this:
<?php if (function_exists('yoast_breadcrumb')) { $breadcrumbs = yoast_breadcrumb('<nav><ul class="breadcrumb">','</ul></nav>',true); } // display breadcrumbs ?>
Anyone?
thx!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[Plugin: WordPress SEO by Yoast] Markup to match Twitter Bootstrap’ is closed to new replies.