changing dropdown default selections

2 replies · opened Mar 26, 2019

Jjd_in_sbMar 26, 2019

I am using combination-filter-bt-dropdown.html as a template and would like to know how to pre-set the dropdown selections.

For example, how would I make the dropdowns default to Red, Small, and Square, instead of Any, Any, and Any?

Jjd_in_sbMar 26, 2019

I would like the dropdown menus to still be active so the user can change them from my defaults to their selections.

SSemicolon WebSTAFFMar 26, 2019

Hello,

You can add the following JS Code at the bottom of the Page just before the Combination Filter On Click event:

$predefinedFilter = $('.btn-group').find('[data-filter=".filter-blue"]');

$container.isotope({ filter: '.filter-blue' });
$predefinedFilter.parents('.btn-group').toggleClass('open').find('.filter-text').html( $predefinedFilter.html() );
$predefinedFilter.parents('.btn-group').find('.dropdown-toggle').dropdown('hide');

This will definitely work fine. Hope this Helps!

For any further Customization you will need to Hire a Freelancer or code it manually as currently we do not provide Customization Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy .

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard