Notifications
Clear all

Style [Solved] Restricting the filling of CSS Input fields. ( disabled )

9 Posts
3 Users
5 Reactions
259 Views
ZiT3K
Posts: 92
Topic starter
(@zit3k)
Estimable Member
Joined: 3 years ago

Hi!

In the two fields below, how can I use CSS to make it visible, but not writeable?

Thank you in advance for your help!

 

8 Replies
Sofy
Posts: 4687
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

You can use the CSS codes below:

.wpf-field-name-user_nicename input {pointer-events: none;}
.wpf-field.wpf-field-type-tinymce.wpf-field-name-about {pointer-events: none;}

 

Reply
7 Replies
ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@sofy 

hello, thank you, but it doesn't work for the signature part, it doesn't work there yet, I can still rewrite that.

Reply
VereK
(@verek)
Joined: 7 years ago

Honorable Member
Posts: 522

@zit3k 

Try

#mceu_25 {pointer-events: none;}
Reply
ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@verek
Not good yet, unfortunately. :/

Reply
VereK
(@verek)
Joined: 7 years ago

Honorable Member
Posts: 522

@zit3k 

Are putting the CSS into the correct place?

Namely, Dashboard-wpForo-settings-colours & styles

And then flushing all caches including wpForo

Reply
ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@verek
yes, because the first part of the previous code, which refers to the nickname, works

Reply
VereK
(@verek)
Joined: 7 years ago

Honorable Member
Posts: 522

@zit3k 

I tested that CSS code here and on my dev site and worked to prevent any new input into the signature field so I am not sure why it's not working for you.

Reply
ZiT3K
(@zit3k)
Joined: 3 years ago

Estimable Member
Posts: 92

@verek 

I checked a little more, it works with the #mceu_26 ID.

Thanks for the help!

Reply