Home › Forums › Furnish theme support › accordion
- This topic has 12 replies, 4 voices, and was last updated 6 years, 8 months ago by Sonl Sinha.
-
AuthorPosts
-
September 7, 2015 at 1:27 pm #11039
Hi how can i set that all accordion tabs are closed by open the page.
September 7, 2015 at 2:02 pm #11044Kindly show us an example as to how?
Regards,
ShriSeptember 7, 2015 at 3:19 pm #11050http://sktthemesdemo.net/interior/shortcodes/toggle-tabs-and-accordion/
when you open the site the accordion title 1 is open. i would like that by entering the site all the accordions are closed.
September 7, 2015 at 6:10 pm #11056Custom Work actually would have to modify the accordion js.
Regards,
ShriSeptember 7, 2015 at 8:18 pm #11063can you help me by this. What have i to do, where is the script stored
Thanks
September 8, 2015 at 10:49 am #11074Hi Jatinder,
Check line number 48 in wp-content/themes/yourtheme/js/custom.js
Regards,
ShriSeptember 8, 2015 at 11:27 am #11076custom.js
accordion line no.21
toggle line no. 48
themes/theme name/js/custom.jsRegards,
ShriSeptember 8, 2015 at 11:44 am #11077Thanks
for all other peoples
its the line with this code.jQuery(‘.accordion-toggle:first’).addClass(‘active’).next().show();
deactivate this line and the accordion is closed by entering the website page.March 10, 2018 at 1:18 am #96185How about being able to close as well as open the accordion?
March 12, 2018 at 5:59 am #96230Hi athena.
Kindly show us your website URL?
Regards,
ChrisMarch 19, 2018 at 2:09 am #96917www.athenamekis.com/rfmacdonaldco
March 19, 2018 at 2:26 am #96918Additionally, here is my specific accordion code. I like that the first accordion is open, but I’d like to be able to click each one closed as well. www.athenamekis.com/rfmacdonaldco
// accordion
jQuery(‘.accordion-box .acc-content’).hide();
jQuery(‘.accordion-box h2:first’).addClass(‘active’).next().show();
jQuery(‘.accordion-box h2’).click(function(){
if( jQuery(this).next().is(‘:hidden’) ) {
jQuery(‘.accordion-box h2’).removeClass(‘active’).next().slideUp();
jQuery(this).toggleClass(‘active’).next().slideDown();
}
return false; // Prevent the browser jump to the link anchor
});March 19, 2018 at 10:40 am #96988Hi,
This can only be done via coder.
Kindly send us your URL of the site and WordPress admin details (Username & Password) via sktthemes.net/contact Please mention this forum URL while replying so that we understand what needs to be done.
Regards,
Chris -
AuthorPosts
- You must be logged in to reply to this topic.