Accordion jquery
-
Hi,
I am using your plugin along with Woocommerce and Collapseomatic(an accordion plugin) without any problems. However, therer is one issue I have: Iam adding an accordion into the cart and checkout table, and the collapseomatic author told me to add this function to my child themeadd_action('wp_footer', 'my_footer_javascript'); function my_footer_javascript() { ?> <script> jQuery( document ).on( 'updated_wc_div init_checkout updated_checkout', function() { collapse_init(); } ); </script> <?php }so that the accordion on the checkout page starts CLOSED when opening the page, not open. When I now defer js in the settings, the accordion starts OPEN when opening the page though…is there anyway to defer jquery but still have the accordion be closed by default? Or alternatively only not defer this one particular jquery script?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Accordion jquery’ is closed to new replies.