AI Assistant
Notifications
Clear all

[Solved] Changing colors of highlighted text

6 Posts
4 Users
3 Reactions
2,882 Views
Rosabeth
Posts: 24
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rosabeth)
Eminent Member
Joined: 7 years ago
[#9842]

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


5 Replies
Sofy
Posts: 5781
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rosabeth)
Eminent Member
Joined: 7 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adrien)
Eminent Member
Joined: 9 years ago

I have the same question.

I would change the color of highlighted text


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

Honorable Member
Posts: 522
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 7 years ago

Eminent Member
Posts: 24
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@verek

Thank you! That worked like a charm.


Share: