Notifications
Clear all

wpForo 1.x.x [Solved] How to extend the number of caracters into the breadcrumb ?

5 Posts
3 Users
0 Reactions
1,773 Views
Posts: 8
 Raph
Topic starter
(@raph)
Active Member
Joined: 6 years ago

Hello,

Is it possible to extend the number of caracters shown into the breadcrumb ? And if yes, how can I do ?

Many thanks,

Raphaelle

4 Replies
Sofy
Posts: 4772
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi Raph,

I'm sorry, but it is not possible yet. Please wait for the next update. We'll add filter hook on text length you'll be able to change it.

We're releasing the new version today.

1 Reply
 Raph
(@raph)
Joined: 6 years ago

Active Member
Posts: 8

Hi Sofy,

Thanks a lot, I'll check the new version 🙂

Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

The hook is added. please update to latest 1.5.1 version and put this code in your activate theme functions.php file. The red marked number is the text length, it's 19 by default. You can change it to whatever you want.

function wpforo_custom_text_length( $length ){
$length = 19;
return $length;
}
add_filter( 'wpforo_breadcrumb_text_length', 'wpforo_custom_text_length');

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

Posts: 8
 Raph
Topic starter
(@raph)
Active Member
Joined: 6 years ago

Hi Robert,

It's perfectly working, many thanks ! 🙂