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

    #182844

    Hi DavyE!

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

    Best regards,
    Josue

    #182908

    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 11 years, 1 month ago by DavyE.
    #183764

    Hi,

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

    Regards,
    Josue

    #184156
    This reply has been marked as private.
    #184369
    This reply has been marked as private.
    #184701
    This reply has been marked as private.
    #185439

    Hi!

    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,
    Yigit

    #185524

    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.