How to customize search fields

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 7 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #216125

    xico
    Buyer
    Post count: 42

    I’m using the GD Search widget on my home page but I don’t want the Near field (the directory is just for a single neighbourhood). How can I hide that field and set it to a single distance like 3km?

    thanks

    #216763

    Kor
    Moderator
    Post count: 16516

    Hi Xico,

    Try using the custom CSS below to hide and it. To adjust the search distance/radius, navigate to GD > General > Search

    
    
    .geodir-search input.snear {
        display:none;
    }

    Thanks!

    #217817

    xico
    Buyer
    Post count: 42

    Thanks. I put that css into the child theme’s css file and the WordPress stylesheet editor but the field still remains. Where should I be editing the css?

    #217818

    Paolo
    Site Admin
    Post count: 31206

    in GeoDIrectory >> Design >> Custom CSS.

    Thanks

    #218080

    xico
    Buyer
    Post count: 42

    I’m sorry, I can’t seem to get this to work. I enter the css in GeoDIrectory >> Design >>
    Custom style css code.

    I also tried to hide the compass icon.

    
    
    
    .geodir-search input.snear .snear ac_input  {
    	display: none;
    }
    .near-compass__web-inspector-hide-shortcut__ .gd-near-me-dropdown  {display:none;}
    
    #218537

    Paolo
    Site Admin
    Post count: 31206

    The code you are using is different from the code suggested by Kor.

    Please provide a link and credentials and we will help out.

    Thanks

    #218680

    xico
    Buyer
    Post count: 42
    This reply has been marked as private.
    #218698

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the css was not working because you are using a theme with css that would overwrite it.

    Whenever you are not using 1 one of our themes, please always provide a link so that we can provide the right code right away without having to guess.

    I added the css for you.

    Please check and let us know,

    Thanks

    #218699

    xico
    Buyer
    Post count: 42

    Ok, thanks. It seems to be working now.

    Cheers

    #218717

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

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

Open Support Ticket