Notifications
Clear all

Script [Closed] Adjust text truncation value in breadcrumb

2 Posts
2 Users
0 Likes
194 Views
Posts: 94
Topic starter
(@vanessa)
Estimable Member
Joined: 4 months ago

How do I increase the number of characters shown in the breadcrumb before the text truncates?

It looks like the truncation happens server side, so I'm not able to do css tricks.

thx

1 Reply
Posts: 986
Moderator
(@martin)
Support Team
Joined: 8 years ago

Hi @vanessa

You can use this code snippets in a PHP code snippets of the Code Snippets plugin or in the current active WordPress theme:

function custom_breadcrumb_text_length( $length ){
	return 100;
}
add_filter( 'wpforo_breadcrumb_text_length', 'custom_breadcrumb_text_length', 10);

 

You can change the red marked 100 to any number of characters you want.