Advanced Search Layout

This topic contains 3 replies, has 3 voices, and was last updated by  Giri 8 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #234196

    John Gallagher
    Free User
    Post count: 11

    Hi,
    I want to add a Category dropdown to my search. I have done this without problems but Its in another <Div> below the main search,
    Any way of having it in line with the other search boxes, e.g. Types -> Category -> Search For -> Near.

    Thanks

    #234730

    Kor
    Moderator
    Post count: 16516

    Hi John,

    Sorry, I’m not sure if I’m getting this. Do you mind sharing a screenshot of what you are trying to achieve? Or probably share your Website URL so we can have a better look at it? You can always make use of the private reply option below.

    Thanks!

    #234736

    John Gallagher
    Free User
    Post count: 11

    I’m just in the process of reinstalling a fresh version of GD and setting it up.
    I had some problems (not sure why) but a new install should sort them out.

    Anyway until I can get a screen shot to you what I want to do is to have a Category dropdown next to the text search field. it would follow this sequence – see image attached

    I don’t want to have to have users chick another button (customize search) to select a category.

    Thanks
    J

    #234888

    Giri
    Expired Member
    Post count: 3155

    Hi there, this would work properly, only for single post type.

    paste this is your child theme

    
    
    function gd_custom_search_category_dd(){ ?>
        <script type="text/javascript">
            jQuery( document ).ready(function() {
                var content = jQuery('.cat_select').clone();
                jQuery('.showFilters').hide();
                jQuery( content ).insertBefore( jQuery( ".search_text" ) );
            });
        </script>
    <?php }
    add_action('wp_footer', 'gd_custom_search_category_dd');
Viewing 4 posts - 1 through 4 (of 4 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount