Notifications
Clear all

wpForo 1.x.x [Closed] Admin account names now link to profile after update, how to disable?

2 Posts
2 Users
0 Likes
522 Views
Posts: 23
Topic starter
(@gunarcom)
Eminent Member
Joined: 5 years ago

I do not use/want to have profile pages on my site. I had previously disabled names linking to profiles with a code snippet in my functions.php file- but now Admin account names link to profiles. 

Is there a new code snippet to disable this? I cannot find any where in the options that would allow me to disable profiles completely. 

 

Thanks

1 Reply
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

Hi @gunarcom,

There are two following options to do that.

1. You can use the following CSS code:

.wpf-author-name > a{
color: currentColor !important;
cursor: not-allowed !important;
text-decoration: none !important;
pointer-events: none !important;
}

The CSS code should be added in the Dashboard > Forums > Settings > Styles > admin page, "Custom CSS Code" textarea. 

2. or you can use the following JS code:

jQuery('.wpf-author-name > a').removeAttr('href');

The js code you should add in your active them's js files.

Here is the instruction on how to add a js file or js code in the active theme:

https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/

In any case, please don't forget to delete all caches and press Ctrl+F5 (twice) on the frontend before checking to reload the updated CSS/JS files.