ID Status Date Product
#18330363 Closed WooCommerce Product Filter
Alvin Penaflor

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.

Alvin Penaflor

Any update or suggestion on this please. I’m working on a tight deadline. Thanks.

Farhad Ahmadi

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

The ticket has been closed. If you feel that your issue has not been solved yet or something new came up in relation to this ticket, you can re-open it by clicking this link.