• Resolved katia_d

    (@uroboro_comunicazione)


    How can i make your shortcode work by clicking a button?
    Thank you

    • This topic was modified 9 years, 8 months ago by katia_d.
Viewing 1 replies (of 1 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    You could try something like:

    $('.open-everything').click(function() {
    	$.each($('.accordion-title'), function(index, value) {
    		if (!$(this).hasClass('open')) {
    			$(this).trigger('click');
    		}
    	});
    });

    And then have a button with the classname of open-everything:

    <button class="open-everything">Open Everything</button>

    Make sure to set autoclose=false on your open accordion shortcode.

Viewing 1 replies (of 1 total)

The topic ‘opening content by button’ is closed to new replies.