Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Closed] Adjust text truncation value in breadcrumb

2 Posts
2 Users
0 Reactions
876 Views
Posts: 103
Topic starter
(@vanessa)
Estimable Member
Joined: 2 years 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: 990
Moderator
(@martin)
Support Team
Joined: 9 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.