Compass color change

This topic contains 21 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #182991

    Joy
    Buyer
    Post count: 1076

    Hello, how do I change the default compass color when GeoLocation is enabled? Currently if NOT enabled it’s gray, once it’s allowed, the compass icon turns blue(by default). I would like to know how to change the blue color. I found this code but it changes the compass color without any differentiating between active/inactive GeoLocation.

    .fa-compass {color: green !important}

    Thank you.

    #183502

    Kor
    Moderator
    Post count: 16516

    Hi Joy,

    You can change the color and hover color of the compass using the custom CSS below.

    
    
    .near-compass i.fa.fa-compass {
        color:#000;
    }
    
    .near-compass i.fa.fa-compass:hover {
        color:#ffa500;
    }

    Let us know if it works.

    #183542

    Joy
    Buyer
    Post count: 1076

    Thank you for your response but that doesn’t work. That changes the compass color but i am only trying to change the color of an active compass. You can see this in action on your Demo. I’m also attaching pictures of it.

    Currently, the active color compass is set to : color: rgb(8, 124, 201); I need to know how to alter that color.

    Thank you.

    #183547

    Kor
    Moderator
    Post count: 16516

    Hi Joy,

    The custom CSS below should work. It changes the color of the compass if it’s active. Let us know if it works.

    
    
    .near-compass.dropdown-open i.fa.fa-compass {
        color:pink;
    }

    Thanks!

    #183551

    Joy
    Buyer
    Post count: 1076

    Thank you, but I’m getting inconsistent results with that. The default color(color: rgb(8, 124, 201)) is still coming through every now and again. I’ll send my site credentials in the next message. Thank you.

    #183553

    Joy
    Buyer
    Post count: 1076
    This reply has been marked as private.
    #183554

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #183571

    Joy
    Buyer
    Post count: 1076

    Have you tried to uncheck and recheck the “near me” box? By default the color change is seamless and turns off or on each time. However, with this css change sometimes the blue comes back…sometimes the pink. I’ve cross-checked with a few browsers and on my mobile device.

    #183589

    Kor
    Moderator
    Post count: 16516

    Hi Joy,

    I’m able to replicate this on firefox browser. Inserting an !important should fix it.

    
    
    .near-compass.dropdown-open i.fa.fa-compass {
        color: pink !important;
    }

    Thanks!

    #183593

    Joy
    Buyer
    Post count: 1076

    Thank you. I’m still getting the same results….can you please tell me where I can hardcode the change instead?

    #183630

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Joy,

    This is done via JS so it’s hard to overwrite it effectively, i have made it easier to change in the next version of advanced search via a hook. If you would like me to implement this on your site early please provide wp-admin and FTP details.

    Thanks,

    Stiofan

    #183954

    Joy
    Buyer
    Post count: 1076

    Hi Stiofan, thank you for your help. I will send you the credentials in the following post.

    #183956

    Joy
    Buyer
    Post count: 1076
    This reply has been marked as private.
    #186132

    Joy
    Buyer
    Post count: 1076

    Hi Stiofan, were you able to add the change? Thank you.

    #189745

    Joy
    Buyer
    Post count: 1076
Viewing 15 posts - 1 through 15 (of 22 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket