Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Drop-down multiplication

Home / Forums / Pinnacle Theme / Drop-down multiplication

This topic is: Resolved
[Resolved]
Posted in: Pinnacle Theme

Tagged: 

December 9, 2017 at 11:45 am

Hello

Please take a look at this page here:

At the top of the reseller search, you see the “Search radius” drop down. Normally, this should of course only appear once, but we get it twice: A plain one that works, and a nicely styled one that does not work.

The store locator plug-in developer says this is something I should take up with you guys.

We have tried unloading select2 for this page:
add_action( ‘wp_enqueue_scripts’, ‘unload_select2’, PHP_INT_MAX );

function unload_select2() {
if ( is_page( “wpsl” ) ) {
wp_dequeue_script( ‘select2’ );
}
}

But then we get an error because assets/js/kt_main.js calls select2. Uncommenting lines 207-220 makes it all work fine, but that’s of course not the idea at all.

What can we do to only have one drop-down, styled or plain, but working?

Thanks a lot for your help
Joerg

  • The forum ‘Pinnacle Theme’ is closed to new topics and replies.