I’m using Genesis along with Geodirectory. I’ve already implemented the use of Genesis’ breadcrumbs sitewide, with Geodirectory’s breadcrumbs across the Geo pages. Additionally, I’ve added a sitewide Home breadcrumb so that it’s before the Geodirectory.
Code:
/**
* Modify Geodirectory breadcrumbs to include Genesis customizations
*/
//* Remove Geodirectory breadcrumbs
remove_action('genesis_after_header', 'geodir_replace_breadcrumb', 20);
add_action('after_setup_theme', 'my_gd_compat_php_genesis', 12);
function my_gd_compat_php_genesis()
{
// GD BREADCRUMBS
add_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20);
add_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20);
add_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20);
add_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20);
add_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20);
add_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20);
}
//* Add sitewide Home link and icon
function modify_breadcrumb_first_item($html) {
return '<a href="' . home_url() . '"><i class="fa fa-home fa-lg"></i> Home</a>';
}
add_filter('geodir_breadcrumb_first_link', 'modify_breadcrumb_first_item');
Here’s my challenge: I would like the breadcrumb geodirectory “home” title to read “Directory” versus “Listings.”
URL: https://logansquarist2.wpengine.com/blnk-haus/
So I would like it to read: Home » Directory » [blnk] Haus
instead of currently: Home » Listings » [blnk] Haus
Any suggestions on how I can change that?