Site logo

[Resolved] Change color sidebar icon

Home Forums Support [Resolved] Change color sidebar icon

Home Forums Support Change color sidebar icon

  • This topic has 9 replies, 4 voices, and was last updated 3 years ago by David.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2568795
    _blank

    Hi,

    how can I change the color of this magnifying glass icon? The color does not change by setting different colors for the container in the sidebar.

    Please see: https://prnt.sc/6I4v0MiNVy2n

    Best wishes
    Lucas

    #2568841
    Ying
    Staff
    Customer Support

    Hi Lucas,

    You can use the color setting at customizer > colors > buttons to control it.

    #2568911
    _blank

    Hi Ying,

    I changed it to white in the customizer but it did not work.

    https://prnt.sc/yybJtecEj6r-

    #2568954
    Leo
    Staff
    Customer Support

    Any chance you can link us to the page in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2569054
    _blank

    The element is in the side bar of a single post page.

    Please have a look at the link in the private information field.

    #2569144
    Ying
    Staff
    Customer Support

    The button has this has-text-color class which sets the text color to var(--text);.

    The icon inherit the text color, and it overrides the customizer color setting.

    Can you try setting the search block’s text color to white?

    #2569756
    _blank

    Sadly, that did not work.

    I changed the color to white and it showed correctly in the block editor but not at the front end.

    Block editor

    Front end

    #2569797
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .has-weiss-color {
        color: var(--weiss) !important;
    }
    #2569821
    _blank

    Hi,

    this worked. Thank you very much.

    #2569911
    David
    Staff
    Customer Support

    Glad to hear that !

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.