How to change the WordPress breadcrumbs Home link in StudioPress Genesis

If you have breadcrumbs enabled in your StudioPress Genesis theme, you may want to change the WordPress breadcrumbs Home link. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to change the breadcrumbs home link.

/**
 * Move breadcrumbs to another location 
 *
 * @author WPSnacks.com
 * @link http://www.wpsnacks.com
 */
add_filter ( 'genesis_home_crumb', 'change_breadcrumb_home_link' ); // Use with Genesis 1.5 or later
add_filter ( 'genesis_breadcrumb_homelink', 'change_breadcrumb_home_link' ); // Use with Genesis 1.4.1 or earlier
function change_breadcrumb_home_link( $crumb ) {
return preg_replace('/href="[^"]*"/', 'href="http://YOURSITE.com/home"', $crumb);
}

Be sure to use the filter above based on the version of Genesis you are using(see notes to right of filter line of code). Also be sure you change the “YOURSITE.com” text above with your domain and Home page. That’s it, now your breadcrumbs Home link should be changed to the one you set above. Hope this helps, enjoy!

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Leave a Comment

*