accordion
-
Using Customizr 3.2.17 with the customzr child theme My site is: https://www.legal-organizer.com/faqs/business/frequently-asked-questions-about-business-organizations/
Problem:
I am trying to use the Bootstrap accordion function for a frequently asked questions page. Here is my page https://www.legal-organizer.com/faqs/business/frequently-asked-questions-about-business-organizations/. The problem I am having is when you click on a section to reveal the hidden part it returns to the top of the page instead of staying at the section that is revealed.
Here is an example of the html that I am using:
<div class="accordion" id="accordion2"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"> Collapsible Group Item #1 </a> </div> <div id="collapseOne" class="accordion-body collapse inner"> <div class="accordion-inner"> Anim pariatur cliche... </div> </div> </div> </div>
I searched on the Customizr forum and did not find anything on this issue. I did find this issue of going to the top of the page when the accordion function is used with a slider covered on Stackoverflow here is the link https://stackoverflow.com/questions/19543821/jquery-accordion-keeps-moving-to-top-of-the-page-on-click. The issue for solving that was needing to add to the js a “return false” with the on click event. I copied the file accordion.js to my child theme and attempted to add a false return but cannot get it to work. Any help is greatly appreciated.
A Second issue I am having is that the right sidebar is appearing after the page content instead in the sidebar. Thanks for your help.
- The topic ‘accordion’ is closed to new replies.