-
AuthorPosts
-
November 2, 2014 at 9:37 am #136900
On our page http://annualmeeting.fmanet.org/become-a-sponsor/ They want the accordion
items all open for the website. For mobile however it would be better to have them all collapsed. Is the best method to do this to just duplicate the band and use a visibility tag?November 2, 2014 at 8:19 pm #137071Hi there,
Thanks for posting in.
For now, leave them open, then add this code at your customizer’s custom javascript to close them on mobile.
jQuery(function($){ $(document).ready(function(){ $('html.touch .collapse').collapse('hide'); }); });
Cheers!
November 3, 2014 at 10:50 am #137564Beautiful Thanks!
November 3, 2014 at 11:27 am #137602Glad we were able to help. 🙂 Have a nice day.
November 4, 2014 at 9:51 am #138323I notice now the mobile menu starts open. The code is affecting it as well. Can you help me target just the Accordion on the Become a sponsor page?
November 4, 2014 at 10:20 am #138363Trying to figure the syntax out lol
jQuery(function($){
$(document).ready(function(){
$( “#sponsor-levels” ).(‘html.touch .collapse’).collapse(‘hide’);
});
});
November 4, 2014 at 11:06 am #138394Got it.
jQuery(function($){
$(document).ready(function(){
$(‘html.touch #sponsor-levels .collapse’).collapse(‘hide’);
});
});
November 4, 2014 at 11:11 am #138402Glad to hear you were able to resolve it! 🙂 Have a good day!
-
AuthorPosts