Notifications
Clear all

wpForo 1.x.x [Solved] Changing colors of highlighted text

6 Posts
4 Users
3 Reactions
1,972 Views
Rosabeth
Posts: 24
Topic starter
(@rosabeth)
Eminent Member
Joined: 6 years ago

Is there a way to change the text and background colors for highlighted text? Thanks.

5 Replies
Sofy
Posts: 4772
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @rosabeth,

Please read this support topic and let us know, isn't this what you want?

https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-highlight-text-background-colour/#post-29967

Rosabeth
Posts: 24
Topic starter
(@rosabeth)
Eminent Member
Joined: 6 years ago

Hi @sofy,

Sorry for the late response; I only just had the chance to attempt this fix. Unfortunately it's not the solution I'm looking for: rather than giving posters the option to use various colors for highlights, what I want to do is alter the default highlight color on the site itself. With the current setup, the #12 color on the Styles page dictates the color of the highlight background, and since #12 is a dark brown on my forum's color scheme, it doesn't work well. Is there a way to change the highlight background color individually? (As well as the highlighted text?) Thanks, and again, sorry for the delay.

Posts: 26
(@adrien)
Eminent Member
Joined: 7 years ago

I have the same question.

I would change the color of highlighted text

2 Replies
VereK
(@verek)
Joined: 7 years ago

Honorable Member
Posts: 522

@adrien

Do you mean pseudo select/highlight?

You could try this is CSS: (Where #7EEA8D is the colour you would want to change)

/* Selecting/Highlighting Text */
#wpforo #wpforo-wrap *::selection {
color: #000000;
background: #7EEA8D;
}
Rosabeth
(@rosabeth)
Joined: 6 years ago

Eminent Member
Posts: 24

@verek

Thank you! That worked like a charm.