Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Breadcrumbs home link customization – Per language

Home / Forums / Kadence Theme / Breadcrumbs home link customization – Per language

This topic is: Awaiting Feedback
[Awaiting Feedback]
Posted in: Kadence Theme

Tagged: 

July 19, 2024 at 6:44 pm

Hi,

I only have breadcrumbs for posts on my site,
So I configured the ‘home link’ to a specific page which I use to display posts.

I have done that based on code that was published here in the forum by Bonn:

// Changing the “Home” string to “Blog”
add_filter(‘kadence_local_breadcrumb_args’, function( $args ){
$args[‘home_title’] = __( ‘Blog, ‘kadence’ );
return $args;
});

// Changing the home-link to a specific page using page-id
add_filter(‘kadence_breadcrumb_args’, function( $args ){
$args[‘home_link’] = get_page_link(‘19042‘);
return $args;
});

My problem is that I currently have 2 languages on my site,
So both the link-name and page-id are different for each language.

Us there a way to add these codesnippets per language?

Thanks,
Ron

  • The forum ‘Kadence Theme’ is closed to new topics and replies.