• Resolved brainoidtech

    (@brainoidtech)


    Hello,

    I tried using this great plugin which I have used on plenty of other website, but on this particular one it doesn’t seem to work. I tried searching the forum and based on solutions suggested by the users tried downgrading to an older version too, but with no luck.

    Can you please help me resolve the issue?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Bayejid Ahmed

    (@bayejid00)

    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!

    Thread Starter brainoidtech

    (@brainoidtech)

    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.

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Accordions won’t work’ is closed to new replies.