Last active
June 22, 2020 21:59
-
-
Save directionforward/934e5bbf6626497e85b0bf93642b1bf7 to your computer and use it in GitHub Desktop.
Removes home in 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
function wpseo_remove_home_breadcrumb($links) { | |
if ( $links[0]['url'] == home_url('/') ) { array_shift($links); } return $links; | |
} | |
add_filter('wpseo_breadcrumb_links', 'wpseo_remove_home_breadcrumb'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment