Customize breadcrumbs identifying name

This topic contains 2 replies, has 2 voices, and was last updated by  logansquarist 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #443374

    logansquarist
    Expired Member
    Post count: 34

    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?

    #443437

    Patrik
    Moderator
    Post count: 1971

    Hi,

    There is no filter for that to change it only for breadcrumb. It is the Name of the post type. You can change it using the ‘GeoDirectory Custom Post Types’ plugin. If you have installed that plugin already then you can change it from Geodirectory->Custom Post Types->Labels. Please note this will change the label everywhere not only for breadcrumb.

    Let me know if any queries.

    Regards,
    Patrik

    #443548

    logansquarist
    Expired Member
    Post count: 34

    OK thanks for the response!

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount