Created
April 7, 2014 21:06
-
-
Save fburatti/10056057 to your computer and use it in GitHub Desktop.
Add Twitter Bootstrap 3 markup to Yoast Breadcrumbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Add Twitter Bootstrap 3 markup to Yoast Breadcrumbs | |
* | |
*/ | |
add_filter( 'wpseo_breadcrumb_output_wrapper', 'my_breadcrumbs_wrapper', 10, 1 ); | |
add_filter( 'wpseo_breadcrumb_output_class', 'my_breadcrumbs_wrapper_class', 10, 1 ); | |
add_filter( 'wpseo_breadcrumb_single_link_wrapper', 'my_breadcrumbs_wrapper_element', 10, 1 ); | |
function my_breadcrumbs_wrapper($wrapper){ | |
$wrapper = "ol"; | |
return $wrapper; | |
} | |
function my_breadcrumbs_wrapper_class($class){ | |
$class = "breadcrumb"; | |
return $class; | |
} | |
function my_breadcrumbs_wrapper_element($element){ | |
$element = "li"; | |
return $element; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment