babrees
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by babrees
-
-
First off, my knowledge is only on html and css, definitely not js!
I have reproduced the examples as per here: https://www.w3schools.com/howto/howto_js_accordion.asp
I eventually want to use it on a wordpress site, however, I am just trying to get it working to start with!
I made a simple html file and simply copied and pasted the examples, using the animated accordion, but I cannot get the sections to open! I added the css and js into the header of the html file.
Accordion won't open
in JavaScript
Posted
Thank you! That works with that html test, but do you know how I would get it to work in wordpress?
I made a separate .js file and called it within my functions.php file, but it wouldn't work; hence trying it out on a simple html page first