Created
December 3, 2015 18:14
-
-
Save haydenbbickerton/d04145faecae39f5687b to your computer and use it in GitHub Desktop.
Wordpress The7 with Yoast Breadcrumbs
This file contains hidden or 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
if (function_exists('yoast_breadcrumb')) | |
{ | |
function yoastBreadcrumbs() | |
{ | |
// The start/end html is theme-specific. | |
return yoast_breadcrumb('<div class="wf-td"><div class="breadcrumbs text-normal" id="breadcrumbs">', '</div></div>', false); | |
} | |
// Override the theme's function for making breadcrumbs. | |
// This is for 'The7' theme, the name of the function is theme-specific. | |
add_filter('presscore_get_breadcrumbs', 'yoastBreadcrumbs', 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment