AI Assistant
Notifications
Clear all

[Closed] Adjust text truncation value in breadcrumb

2 Posts
2 Users
0 Reactions
1,412 Views
Posts: 103
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@vanessa)
Estimable Member
Joined: 2 years ago
[#50615]

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: 997
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@martin)
Support Team
Joined: 10 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.


Share: