Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #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.


    Hi DavyE!

    I tested trying with red, it appears to work, see screenshot below:

    Best regards,


    Ok, 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 3 years, 11 months ago by  DavyE.


    Can you create an administrator account and post it here as a private reply?


    This reply has been marked as private.
    This reply has been marked as private.
    This reply has been marked as private.


    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,


    Ok, 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.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘::selection background-color’ is closed to new replies.