Search box background and text color

Homepage Forums Free Support Forum Blackoot Lite Blackoot Lite Support Search box background and text color

Note about WordPress 5.0:
Our themes are compatible with WordPress 5.0. However not all functionality are guaranteed to work as expected with the new editor (Gutenberg) that comes with 5.0.

We highly recommend installing the Classic Editor plugin, which will bring back the usual editor if you run into any issue or just do not like the new editor.

An update to bring full compatibility with Gutenberg is being worked on, but has been postponed because of the recent fast-paced evolution of the Gutenberg project until WP 5.0 release. More info about the release of WordPress 5.0 announced on a short 2-days notice can be found here: New 5.0 Target Date.

Search box background and text color

This topic contains 1 reply, has 2 voices, and was last updated by  iceable 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23813
    Search box background and text color

    finstudios
    Participant

    is there a way to Change search box background to white and leave my text red

    Attachments:
    You must be logged in to view attached files.
    #23820
    Reply to: Search box background and text color

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hi, this CSS should do the trick:

    input[type=search]:focus {
        background-color: #fff;
        color: #E82A15;
    }
    
    input[type=search]:focus::after {
        color: #E82A15; /* Color of the magnifying glass icon */
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.


PayPal Verified
Secured by PayPal
Secure Credit Card payments powered by Stripe