Created
November 20, 2019 19:40
-
-
Save vfontjr/04573335febf6f4506115b98962c513d to your computer and use it in GitHub Desktop.
Remove /catagory/ from Genesis breadcrumbs URL
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
<?php | |
add_filter( 'genesis_post_crumb', 'remove_category_from_crumb_url', 10, 3); | |
function remove_category_from_crumb_url( $crumb, $args, $cat_crumb ) { | |
$crumb = str_replace("/category/","/",$crumb); | |
return $crumb; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment