-
AuthorPosts
-
October 30, 2013 at 3:06 pm #182446
Tried searching the forums, but couldn’t find anything related to Enfold.
How can I change the background-color for text selection? Have tried adding the following to my custom.css:
::selection {background-color:#ef7c0b!important;} ::-moz-selection {background-color:#ef7c0b!important;} ::-webkit-selection {background-color:#ef7c0b!important;}
Yes, even with !important it still doesn’t work.
As far as I understand, the color used for background-color of text selection is the same as the one added in the theme settings in WP. Yet, as I have already mentioned in a previous topic several months ago, I cannot add my specific company color to the theme settings. So how can I overwrite that different color, or is there a way to solve that bug?
In your Theme settings -> Styling -> Main Content -> Primary Color, try adding the following #EF7C0B. You will see the C is replaced by a D. Seems like a minor change, but try filling 2 squares with each color, you’ll see the difference. For my company, it’s important to get it right.
October 31, 2013 at 7:01 am #182844Hi DavyE!
I tested trying with red, it appears to work, see screenshot below:
Best regards,
JosueOctober 31, 2013 at 10:39 am #182908Ok, red works for me too, but that’s not the color I need. Please try again with my specific color #EF7C0B. See the difference below (left is text selection, and right is a button with the correct color):
And below you see where I want to enter EF7C0B, but it gets replaced by EF7D0B. Big difference in color as you can see in the screenshot above.
So every element on my site using the primary color is wrong! I don’t understand the added value of these settings if they refrain from using a specific color. I’m not going to change my company color because these theme settings refuse to accept it. Can’t you fix that, or is there something I can modify to get it fixed?
EDIT: First screenshot shows “red” in the code, but that’s because I took the screenshot while testing with red first, then back to EF7C0B.
- This reply was modified 11 years, 1 month ago by DavyE.
November 2, 2013 at 7:47 pm #183764Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
JosueNovember 4, 2013 at 10:29 am #184156This reply has been marked as private.November 4, 2013 at 6:09 pm #184369This reply has been marked as private.November 5, 2013 at 10:23 am #184701This reply has been marked as private.November 7, 2013 at 2:48 am #185439Hi!
On my screen they look almos the same. There is no noticable difference. In my opinion, it would be so hard to match these colors as it automatically adjusts the color. You can try adding black #000 and you will see that it will not be pure black
Best regards,
YigitNovember 7, 2013 at 10:07 am #185524Ok, thanks for taking the time to look into this. Too bad there isn’t a way to get it right, but maybe I’ll just pick a neutral color instead so it doesn’t look awkward when it’s “almost” the same.
-
AuthorPosts
- The topic ‘::selection background-color’ is closed to new replies.