I'm sorry but there is no way to do this. CSS is not enough. These usernames are cut in wpForo template files. We'll add a filter hook in future versions to allow you control the max number of chars.
Did you add this filter? If yes, how can I control the max number of chars now?
Ok, I see.
Do you still plan to add a filter hook about this in future versions?
Ok, I see.
Do you still plan to add a filter hook about this in future versions?
Hi @envi,
The hook is not needed. You can use the Extended Layout template file to customize.
1. Create /wpforo/ folder in your active WordPress theme, then create /layouts/ in that folder then /1/ folder. The end folders should be: /wpforo/layouts/1/
2. Copy wp-content/plugins/wpforo/wpf-themes/classic/layouts/1/forum.php file and paste in the /wpforo/layouts/1/ folder you created in #1 step.
3. Open forum.php file and find this code:
<?php wpforo_member_link($member, 'by', 9); ?>
4. Change the third "9" argument to whatever you want. It's the number of username chars.
Â
This is the wpForo template file customization in upgrade-safe way. You can read more in wpForo Documentation:
- https://wpforo.com/docs/root/forum-themes/theme-customization/
- https://wpforo.com/docs/root/forum-themes/theme-files/
Â