Creating a search form

This topic contains 3 replies, has 2 voices, and was last updated by

5 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #9963


    How Can I achieve a search like the one uploaded. Its meant to search via different locations which is a drop down menu. I’m having issues achieving this with the plugin

    • This topic was modified 5 years, 4 months ago by  joeville9ja.
    You must be logged in to view attached files.


    I’m not sure if it’s possible to make an exact replica of the screen-shot, but it’s definitely possible to get something very similar.

    Step 1: you need to make the settings filter (drop-down) on the left. Now, depending on how the information is connected to the posts you either need a:
    Taxonomy term filter
    – or Custom field filter

    Step 2: Once you managed to create the filter you need, first of all you need to turn off all of the other default ones so that only that one drop-down remains visible. To do that go to the Frontend Search settings -> General panel:

    Step 3: Now you also want to make sure that the filter is visible at all times, so on the same panel turn on the Set the search settings to visible by default? option:

    Step 4: Now that everything is ready, you want to place the plugin shortcodes in a way that the settings are on the left and the search bar on the right. For that you can use the shortcode generator:

    Basically the shortcode generator allows you to generate search shortcodes in the layout you specify. In the example above I made a shortcode that displays the settings box on the left, the search on the right with a 30/70 ratio:

    [wd_asp elements='settings,search' ratio='30%,70%' id=1]

    In my case this results in something like this:

    Of course some styling might be required, but this is the general idea.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)



    OK Thanks. But how can I centralise the search form on the page while using the php shortcode. I am inserting it into my theme’s file, to show on the header or next to the header.



    Well, it depends on the exact situation as well, but there are two options in this case:

    1. Try to change the Search box alignment option to “center” on the Layout options -> Search box layout panel:

    2. Using a custom CSS, something like:

    .asp_main_container {
        margin: 0 auto !important;
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)

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

You must be logged in to reply to this topic.