• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to have a different breadcrumb home link (multilingual site)?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to have a different breadcrumb home link (multilingual site)?

This topic is: not resolved

Tagged: breadcrumb

  • This topic has 2 replies, 1 voice, and was last updated 10 years, 1 month ago by Arom77.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 7, 2015 at 11:43 am #173022
    Arom77
    Member

    Hi!

    I've created a multilingual website for a client and I'd linke to change the breacrumb home link anchor, depending on the language.

    Here you can see the website in french language. The text inside the breadcrumb is "Comédienne voix off", which is perfect:

    Voix off

    Here you can see the website in english. The text is the same, which is not good (destination link is OK though as I'm using WPML):

    Voice-over

    I'm using this snippet:

    <?php
    //* Do NOT include the opening php tag shown above. Copy the code shown below.
    
    //* Modify Home breadcrumb link.
    add_filter ( 'genesis_home_crumb', 'sp_breadcrumb_home_link' ); // Genesis >= 1.5
    add_filter ( 'genesis_breadcrumb_homelink', 'sp_breadcrumb_home_link' ); // Genesis =< 1.4.1
    function sp_breadcrumb_home_link( $crumb ) {
    	return preg_replace('/href="[^"]*"/', 'href="http://example.com/home"', $crumb);
    }

    Any idea?

    Thanks! 🙂

    http://nellyrebibo.com/voix-off/
    December 14, 2015 at 9:51 am #173778
    Arom77
    Member

    Nobody ? :-/

    December 14, 2015 at 10:05 am #173779
    Arom77
    Member

    Actually I made a mistake, the code I'm using is:

    //* Change the word 'Home' that is at the front of breadcrumb trail
    add_filter( 'genesis_breadcrumb_args', 'b3m_home_text_breadcrumb' );
    function b3m_home_text_breadcrumb( $args ) {
     
      $args['home'] = 'Comédienne voix off';
      return $args;
     
    }

    Anyone? 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble