WordPress.org

Ready to get started?Download WordPress

Forums

Ajax WP Query Search Filter
Search form formatting quesitons (8 posts)

  1. Aldo
    Member
    Posted 1 year ago #

    Hello

    We would like to change some aspects of the search form without touching the plugin core:
    1. How can we add classes to the search button?
    2. How can we place the search string field at first place?
    3. Is it possible to wrap the taxonomy div's in a parent container?
    4. How can we add an placeholder attribute to the search field?

    Thanks!
    Aldo

    http://wordpress.org/plugins/ajax-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    hi,
    1. so far you can't. But in the next release I will add a filter for this.

    2. There is a filter called, 'awpqsf_form_top()', actually you can put the button in this filter, but prevent two button showed at once, you will need to wait for the button filter in the next release.

    3. what do you mean the parent container? there are filter for each taxonomy output display type(radio, checkbox, dropdown). If you know how to use it, you can change the output of the field.

    4.No, you can't.

  3. Aldo
    Member
    Posted 1 year ago #

    Great news!
    Looking forward for the updates.

    By container I meant:

    <div class="all-taxonomy-and-meta-fields-container">
    
    <div class="awpqsf_class taxdropdown-0">...</div>
    <div class="awpqsf_class taxdropdown-1">...</div>
    <div class="awpqsf_class taxdropdown-2">...</div>
    
    </div>

    As you can see with "all-taxonomy-and-meta-fields-container" I'm looking for a container who contains all the defined meta and taxo searches.

  4. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    You got two action hook before and after each input - awpqsf_form_top() and awpqsf_form_bottom() . Use this action hook to add the container.
    eg:

    add_action('awpqsf_form_top' , 'mycontainer');
    function mycontainer(){
    echo '<div class="all-taxonomy-and-meta-fields-container">';
    }
    add_action('awpqsf_form_bottom' , 'mycontainerbottom');
    function mycontainerbottom(){
    echo '</div>';
    }
  5. Aldo
    Member
    Posted 1 year ago #

    Thanks,
    but I would like to exclude the keyword search field.
    Any way to achieve this?

  6. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    You can exclude the keyword search in form setting page.

  7. Aldo
    Member
    Posted 1 year ago #

    But i don't want to exclude it completely, just from the container group I create with the action hooks.

  8. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    Well, i will add a filter for it on the next update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.