I'm trying to collapse all items in an accordion. It seems that the first item is expanded by default but I want everything to be collapsed. Any way to do this?
This functionality isn't available normally in our theme.
If you want to callapse all elements in accordion edit file common/js/scripts.js. In line 100 you have a definition of accordion. Delete this lines from your file:
$(".acc_content").hide();
$(".acc_title:first").addClass("active_acc menu_line_top link_hover");
$(".acc_content:first").show();
$(".acc_title").click(function () {
$(".acc_title").removeClass("active_acc menu_line_top link_hover"); //Remove any "active" class
$(this).addClass("active_acc menu_line_top link_hover"); //Add "active" class to selected tab
$(".acc_content").hide(); //Hide all tab content
var activeTab = $(this).parent(); //Find the rel attribute value to identify the active tab + content
activeTab = $(activeTab).children(".acc_content"); //Fade in the active content
$(activeTab).fadeIn();
return false;
});
Just to confirm, you are referring to the wordpress/wp-content/themes/ceevee/js/scripts.js file, correct? there nothing similar to this bit of code, I must have the wrong file location, can you please clarify?
You wrote in Skyfashion theme topic. You will have to start new topic in CeeVee category, so developer of this theme will answer you. Sorry, I couldn't know :-)
Comments
Please send me link to page with that issue.
With regards
If you want to callapse all elements in accordion edit file common/js/scripts.js.
In line 100 you have a definition of accordion. Delete this lines from your file: Let me know if it works for you
With regards
With kind regards.
there nothing similar to this bit of code, I must have the wrong file location, can you please clarify?
thanks!
With kind regards.
thanks!