Can’t edit search icon color or position via CSS

Ivory Search Forums Support Can’t edit search icon color or position via CSS

Viewing 1 reply thread

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #5526
      markmadedesign
      Participant
      • Topics: 1
      • Replies: 0

      Hi. I essentially have two different nav bars on my client’s site, one for Home page and one for all other pages. I have set up and catered this search icon to look good on all the inner pages. Example below.

      Looking for Work

      However, when I try to implement in my home page code and alter the color to white and add some top margin via CSS, those edits don’t take effect. Are you able to review my CSS below and let me know if I’m targeting the wrong things or is this not possible? To have two different looking icons to cater to two different navbars in a site. I have since removed the Home page instance of this search icon since I couldn’t get it to look the way I wanted but I attached a screenshot of how it looked.

      body.home svg.search-icon { margin-top: 10px !important }
      body.home .is-menu path.search-icon-path { fill: #fff !important }

      Thanks for your help!

      Attachments:
      You must be logged in to view attached files.
    • #5534
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      I hope you are well today and thank you for your question.

      Your shared CSS code is correct and should work fine.

      Just test it clearing your browser cache or using a different browser.

      Best regards,
      Ivory Search Support

Viewing 1 reply thread

You must be logged in to create new topic or reply to the topic.