Hi @brainoidtech,
Thank you for reaching us.
I have reviewed the reference link and found that the Easy Accordion plugin’s JS script files are not loaded on the page. If the wp_footer() function is used in header.php of the current theme (which is not the best practice of coding), the JS scripts may not load. To load the JS scripts and to run the Easy Accordion smoothly, add the following code to the current theme’s functions.php file like the screenshot
// Loading EasyAccordion Script if wp_footer() is added in header.php
function sp_ea_one_scripts() {
wp_enqueue_script( 'sp-ea-accordion-js' );
wp_enqueue_script( 'sp-ea-accordion-config' );
}
add_action( 'wp_enqueue_scripts', 'sp_ea_one_scripts' );
After adding the code, let me know if the accordion works or not.
Have a nice day!
Thank you, adding the code to functions.php actually solves the issue. Thank you so much.
However, we have not used wp_footer() in the header.php file anywhere, anyway, thank you for identifying the issue, I will resolve the JS issue and check again, but for now, the issue is resolved. Appreciate the help.
Hi @brainoidtech,
Nice to hear that the issue is resolved.
If you like the plugin and support, feel free to share your experience in the review section.
Thank you.