Home Forums WoodMart support forum Change ‘Home’ breadcrumb on pages and posts

Change ‘Home’ breadcrumb on pages and posts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #639177

    Jimson
    Participant

    My home page has a different page title than ‘Home’, yet, on pages and posts, the Breadcrumb mentions ‘Home’. I would expect and like to see the page title in the breadcrumb.

    I already managed to do this on all Woocommerce pages by the below code snippet.

    `/**
    * Rename “home” in breadcrumb
    */
    add_filter( ‘woocommerce_breadcrumb_defaults’, ‘wcc_change_breadcrumb_home_text’ );
    function wcc_change_breadcrumb_home_text( $defaults ) {
    // Change the breadcrumb home text from ‘Home’ to ‘Here comes your title’
    $defaults[‘home’] = ‘Here comes your title’;
    return $defaults;
    }

    But this code doesn’t change it for pages and posts.
    Please tell me how I can have the page title or have a breadcrumb other than ‘Home’.

    #639357

    Hung Pham
    Participant

    Hi Jimson,

    Thanks for reaching to us.

    + In order to change / translate words. Please make sure you synced the strings first before changing / translating WooCommerce, WoodMart Core plugins and WoodMart theme. You can refer to article

    https://xtemos.com/docs-topic/theme-translation/
    https://xtemos.com/docs-topic/how-to-make-woodmart-multilingual-with-wpml/

    + You are also need to select the language for the backend and theme settings for admin from the admin user profile, please edit the user’s profile and then select the language for that user it will show the same on the backend.

    + Some strings related to Wishlist / Compare / Login & Register page, you can change in Theme Settings > Shop or Theme Settings > My account https://prnt.sc/W8Tt95stG3YC

    Regards,

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