When post first loads, accordions do not work
-
Hello, first time working with wordpress and customization and learning as I go.
I am using the accordion shortcut on a post to hold description text. In my post I have:
[accordion autoclose=”true” openfirst=”false” openall=”false” clicktoclose=”true”][accordion-item title = “Project Name”]
Sample text.
[/accordion-item][/accordion]If you click on ‘Project Name’, the accordion will reveal some descriptive text. Clicking again on ‘Project Name’ will close the accordion. Everything seems to be working properly when you access the page directly: https://mhdo.org/?p=514
my issue
when I click on any other page to get to the post (or the back button) the page shows the accordion fully ‘open’ and clicking on the accordion title does not close it.example:
1. go to mhdo.org
2. click on white box (when you rollover you will see, test page’, which will land you to the problem page—clicking on ‘Project Name’ does not close the accordion.
3. refresh to view page properly working.When this problem page is accessed from another link, the script doesn’t seem to work. (I’m guessing?) But when the page refreshes, everything seems fine.
I should note:
? I checked to make sure that the “wp_footer() “being called right before the closing </body> tag in your themes footer.php file.—it is there
? I’m using a custom theme but java seems to load fine so, I’m confused.Has anyone seen something like this or have any recommendations? Thanks in advance.
- The topic ‘When post first loads, accordions do not work’ is closed to new replies.