Notifications
Clear all

wpForo 1.x.x [Solved] Anyway to disable "source code" for Standard users?

5 Posts
4 Users
0 Reactions
1,896 Views
Posts: 1
Topic starter
(@xxrforone)
New Member
Joined: 6 years ago

I don't want them insert code to post

4 Replies
Posts: 130
(@cmw14)
Estimable Member
Joined: 8 years ago

Add the following css to settings| Styles  Custom CSS code:

#wpforo #wpforo-wrap #mceu_20 {display:none;}

Save it, delete cache and f5 the browser

Paul Griffiths
Posts: 7
(@paul-griffiths)
Active Member
Joined: 5 years ago

Hi

Should the above code still work to disable "source code"

I have the following in my Custom CSS Code, & the source code option remains (note the font works).

    #wpforo #wpforo-wrap {
    font-family: 'Kalam', sans-serif;
    font-size: 13px; width: 100%; padding:10px 0; margin:0px;
    }

    #wpforo #wpforo-wrap #mceu_20 {display:none;}

What have I done wrong?

Thanks

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

@paul-griffiths,

Please try this CSS code: 

#wpforo #wpforo-wrap div[aria-label='Source code'] {
display: none !important;
}

Then delete all caches and press CTRL+F5 (twice) on the frontend. 

Paul Griffiths
(@paul-griffiths)
Joined: 5 years ago

Active Member
Posts: 7

@sofy

This works 😀

Thank you