Warning: Use of undefined constant closed - assumed 'closed' (this will throw an Error in a future version of PHP) in
/home/customer/www/codenegar.com/public_html/wp-content/themes/codenegar/functions.php on line
171
|
Using the Product Filter By Attribute widget of Woocommerce AJAX Product Filter plugin. Is it possible to display the filter title inside the dropdown field instead of above it, and how can I go about doing that? Thanks for your help.
|
|
Any update or suggestion on this please. I’m working on a tight deadline. Thanks.
|
|
Hi,
Thanks for contacting.
Please note that when you add a reply to the ticket, it moves to the end of support queue.
By default there not an option for that, but you can achieve this by writing custom JavaScript code.
Here is how:
jQuery(document).ready(function($) {
jQuery("#ctax_product_tag").prepend( new Option('Select an Item','title_option') );
jQuery(“#ctax_product_tag”).val(‘title_option’);
});
First we add a new option to the dropdown and then choose it as the selected item and all these should happen after complete page load.
You need to repeat this action on every AJAX update using the plugin AJAX hook (because filters are reloaded to show new count number)
You can find more info about AJAX hooks in the plugin documentation.
Thanks.
|
Write a reply