• Resolved Artan

    (@artankrasniqi1988)


    Hi,

    option “Highlight Search Terms”:

    I have two css entries which stand in conflict:

    /* seems to be inline and overwriting the individually set color */
    .is-highlight {
    background-color: #ffdd2e !important;
    }

    /* in ivory-search.min.css */
    .is-highlight {
    background-color: #ffffb9;
    color: #222;
    }

    Can u reproduce? Ich checked my own css i don´t overwrite it. Flushed cache etc. but no success. I once set it and it worked but not the set color stays before the !important entry.

    Regards

    Edit: It seems to happen only via page (/?s=test&id=71897&post_type=page) search not in blog search results.

    • This topic was modified 8 months, 2 weeks ago by Artan. Reason: narrowing the problem down
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today. Thank you for posting here.

    Yes, the one CSS is overwriting the another CSS.

    Could you please tell me exactly what issue you are facing with it?

    Does the Highlight Search Terms option not work for you?

    If so then could you please share the page URL from your site where it is not displaying so I can troubleshoot it?

    Best regards,

    Thread Starter Artan

    (@artankrasniqi1988)

    Hi @vinod-dalvi,

    the set color for Highlight Search Terms works only on this page for me (searchresults for blogpages):
    https://www.terracamp.de/?s=zelt&id=71898&post_type=post

    When searching in pages and having search results for pages the set color gets overwritten in CSS. See here:
    https://www.terracamp.de/?s=zelt&id=71897&post_type=page

    I guess u will see it when u inspect the class is-highlight term-0

    At the moment I don´t know why there´s a CSS conflict or values doesn´t get correctly written in.

    Regards!

    Edit: The set color is the one in the blog post search results #2ef5ff

    • This reply was modified 8 months, 2 weeks ago by Artan. Reason: add extra info
    Thread Starter Artan

    (@artankrasniqi1988)

    Sorry my bad, I thought it was a global setting but the color is set at every individual search form. So I just didn´t set it in my page search form. Sorry.

    This is resolved!

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Awesome great to see you got that resolved.

    Please advise if you have more questions.

    Have a fantastic day!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS conflict?’ is closed to new replies.