dropdown list

This topic contains 11 replies, has 4 voices, and was last updated by  Guust 7 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #233978

    Nabil Chiguer
    Buyer
    Post count: 10

    Hi,

    How can do to have a dropdown list in search section (On the left).
    Actually it is a free search, it is not possible to work like that. Because if I have for exemple 10 categories, the visitors has to know my categories to find what they want.

    So I need to do a dropdown list in search section.

    How can I do ?

    Thanks

    #234042

    Giri
    Expired Member
    Post count: 3155

    We don’t understand which dropdown you are talking about. can you take a screenshot and show us?

    Thanks

    #234075

    Nabil Chiguer
    Buyer
    Post count: 10

    In the search section.

    I make it in attachment.

    In the right, the visitor write the location that he wants and in left wich categorie he wants.

    I want the left is a dropdown list.
    Or it is possible to delete it ?

    #234076

    Nabil Chiguer
    Buyer
    Post count: 10

    I forget to inser the file in the previous message.

    #234105

    Guust
    Moderator
    Post count: 29970

    The search field cannot be changed to a dropdown.
    But you can add a category dropdown using the advanced search addon, see more at https://wpgeodirectory.com/docs/search-filters-overview/#filter

    See this page for an example of how it works: https://wpgeo.directory/

    #234120

    Nabil Chiguer
    Buyer
    Post count: 10

    The problem is that the visitor can fill the box I sent you.

    I need to block it.
    Because I don’t have too much categories. So, I just need to block this box.

    If I need to inser code, tell me please because it is very very important for me now.

    Thanks

    #234258

    Paolo
    Site Admin
    Post count: 31206

    Hi,
    the only quick thing you can do there is to hide that field, you cannot turn it into a category selector without a customization and customization are beyond support.

    To hide it, add this to GeoDirectory >> Design >> Scripts >> Custom CSS.

    
    
    
    .geodir-search input.search_text[type="text"] {
        display: none;
    }

    Thanks

    #234409

    Guust
    Moderator
    Post count: 29970

    Just a clarification too: the left field is not only to search categories but listings, and it will search titles, description and taxonomies (tags and categories) of the listings.

    See also https://wpgeodirectory.com/docs/core-design/#how

    #234693

    Nabil Chiguer
    Buyer
    Post count: 10

    Hi,

    Yes I know thanks.

    It is very good if I can hide that field.
    But I inser you custom and it is not working.

    That the link where there is the search section :

    https://www.monsieurvtc.fr/lieu/formation-vtc-1/

    And in attachment there is my setting where I add your custom.

    Do you know why it is not working ?

    Thanks

    #234880

    Guust
    Moderator
    Post count: 29970

    Check Paolo’s code, it says

    [type="text"]

    not

    [type="text"]
    #234893

    Nabil Chiguer
    Buyer
    Post count: 10

    Yesss it is working !

    Thank you very much.

    #235449

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

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

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

Open Support Ticket