I apologize for the delay in getting back to you.
The reason you’re seeing the horizontal scroll is because somehow < code > tags are being added around the FAQ titles, and the CSS (specifically overflow-x: scroll in base.css) controlling < code > tags is adding the horizontal bars. My plugin doesn’t add those tags, so I’m not sure why they’re there.
The reason you’re also not seeing the collapsing is because somehow my plugin’s faq.js script is not getting loaded. In your footer.php file in your theme’s folder, can you confirm that wp_footer(); exists there?
I did realize those tags were extra and I did clean them up.
Yes, <?php wp_footer(); ?> does exist in my footer.php
Now it will collapse if I preview the page. Just not on the live front end.
That is really bizarre… my javascript is loaded during a preview but not after publishing? I honestly have no idea why that is or how to fix it.
I reached out to the theme’s designer and he made this suggestion:
As it is an AJAX theme, you will probably will need to recall the JavaScript functions of your plugin when the new page content is loaded.
Try to add the function after the line #1416 at the file js/scripts.js.php:
[1407] /*--- Restart some jQuery scripts ---*/
[1408]
[1409] $('.ml-fit').fitVids();
[1410] ml_start_gallery();
[1411] ml_welcome_loop();
[1412] ml_launch_slider();
[1413] ml_launch_tabs();
[1414] ml_launch_toggle();
[1415] ml_launch_isotope();
[1416] YOUR_FUNCTIONS();
Since this is your plugin, what function call would go on line 1416?
Thanks.
I have a nameless jQuery function that’s called as part of my plugin. I’ll test out naming it to make sure it works and get back to you soon.
I’ve had no luck with function naming… unfortunately I’m not a jQuery expert. Have you tried copying the contents of faq.js into the js/scripts.js.php file?
I added it, no change.
Well thanks for trying.