Change color/position of search icon in header

This topic has 8 replies, 3 voices, and was last updated 7 years, 8 months ago ago by Jack Richardson

  • Avatar: xoxfxjx
    forbesindustries
    Participant
    August 22, 2016 at 16:00

    Is it possible to change the color of the search icon in the header? I’d also like to move it down just a bit. What is the CSS to target the search icon?

    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 22, 2016 at 16:11

    Hello,

    Try the following css code in Theme Options > Custom CSS > Global Custom CSS section:

    .et-search-trigger .fa-search {
        color: #0066bf;
        margin-top: 8px;
    }

    Set the values to your needs.

    Best regards,
    Jack Richardson.

    Avatar: xoxfxjx
    forbesindustries
    Participant
    August 22, 2016 at 16:21

    Thank you, Jack!

    The positioning worked but the code did not change the color of the magnifying glass icon.

    Any other ideas?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 22, 2016 at 16:28

    Hello,

    As I see it’s working perfect. See screenshot: http://prntscr.com/c8ygac

    Regards,
    Robert Hall

    Avatar: xoxfxjx
    forbesindustries
    Participant
    August 22, 2016 at 16:42

    But that’s not the color I assigned. This is my CSS in Theme Options > Custom CSS:

    http://imgur.com/a/tNT83

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 22, 2016 at 16:43

    Hello,

    Try to add !important to color property like this:
    color: #0066bf !important;

    Best regards,
    Jack Richardson.

    Avatar: xoxfxjx
    forbesindustries
    Participant
    August 22, 2016 at 16:50

    That did it! Thanks, Jack!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 22, 2016 at 18:01

    Hello,

    You are welcome.

    Best regards,
    Jack Richardson.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Change color/position of search icon in header’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.