This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Placeholder icon

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51281
    PrimeMediaPrimeMedia
    Participant

    Hello again Ernest lol :p

    Is it possible to add an icon to the placeholder, like for example a maps/location icon?

    Thanks in advance.

    #51283
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi again 🙂

    Well only via custom CSS, something like this:

    #ajaxsearchpro2_1 .probox .proinput input.orig {
        background-image: url("https://rioolspot.nl/wp-content/uploads/2024/06/cropped-rioolspot-favicon-32x32.jpeg") !important;
        background-position: left center !important;
        background-repeat: no-repeat !important;
        padding-left: 40px !important;
    }

    That should result in this: https://i.imgur.com/LYWjvYe.png

    The icon has to be an image, optimally around 32x32px or smaller 🙂

    #51284
    PrimeMediaPrimeMedia
    Participant

    haha even used my favicon, i didnt think about that, but awesome idea.

    Thanks again for the great support:)

    #51290
    PrimeMediaPrimeMedia
    Participant

    You cannot access this content.

    #51301
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I don’t see the custom CSS anywhere on the page. If you have a cache of some sort (page, minify, Cloudflare etc..) make sure to clear them. Once it’s on the page it will have an effect 🙂

    #51305
    PrimeMediaPrimeMedia
    Participant

    You cannot access this content.

    #51307
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great, I can see it now. It’s only a minor specificity issue. Because it’s printed over the plugin CSS, it’s overwritted by the default CSS. Please use this modified version with higher specificity, it will work:

    div#ajaxsearchpro2_1 .probox .proinput input.orig {
        background-image: url("https://rioolspot.nl/wp-content/uploads/2024/06/cropped-rioolspot-favicon-32x32.jpeg") !important;
        background-position: left center !important;
        background-repeat: no-repeat !important;
        padding-left: 40px !important;
    }
    #51309
    PrimeMediaPrimeMedia
    Participant

    You cannot access this content.

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