Feb 05, 2020 11:56 pm
Is there any fancy css I can use to hide the parenthesis ( ) around the Nicename under a user's profile? (I just think it will look cleaner and will be easier to read)
such as using ::first-letter and ::last-letter.
I tried different combinations and never seemed to get the right combination of selector and ::xx-letter.
Thanks!
5 Replies
Feb 06, 2020 9:40 am
Hi @curtisb,
I'm sorry but that's not possible. We'll add a filter hook in next version to allow you filter and remove unnecessary characters.
Sep 01, 2022 10:39 am
Hi @curtisb,
Let's try this. Put this code in a PHP snippets using Code Snippets plugin or in the functions.php file of your current active WordPress theme, delete all caches and check it:
add_filter( 'wpforo_member_nicename', function($nicename){
return str_replace(array('(', ')'), '', $nicename);
});