-
AuthorPosts
-
June 18, 2017 at 2:45 pm #24152Anonymous UserMember
Hi, I’m trying to add an accordion code to the site, but for some reason it’s not working. I’ve added CSS and Java code in the customize section and added html to the page. I can see the accordion section, but it just doesn’t work. Here’s a link to the page, maybe you can figure out what’s going on – http://touchforbirth.com/preliminary/bodywork-2/
The accordion is about a third down on that page.
Thank you!
June 19, 2017 at 9:34 am #24155Arnel CMemberHello Nikolay,
Sorry for the problem with the accordion section. Can you provide us a little more information about how you have added the code? We would need access to your site in order to access look at this issue. If you’re using Bootstrap code, then it’s possible that the issue has to do with version. You can actually load Bootstrap with your WordPress site found here. You can also find the latest version of the accordion code in the Javascript section. If you have the latest version of Bootstrap loaded and you’re using their code, then the accordion code should work. I have used it before myself, so I understand the issue you’re running into. Make sure there are no typo’s in your code as it will also cause the code not to work.
If you have any further questions or comments, please let us know.
Regards,
Arnel C.
June 22, 2017 at 6:31 pm #24154Nikolay KindRadMemberHi Arnel,
Here’s the CSS code I’ve added to Custom Code section:
.boldgrid-css{ background: white; }
/* Style the buttons that are used to open and close the accordion panel */
button.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
text-align: left;
border: none;
outline: none;
transition: 0.4s;
}/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
button.accordion.active, button.accordion:hover {
background-color: #ddd;
}/* Style the accordion panel. Note: hidden by default */
div.panel {
padding: 0 18px;
background-color: white;
display: none;
}
button.accordion:after {
content: ‘
Viewing 4 posts - 1 through 4 (of 4 total)