Arconix FAQ
[resolved] FAQ not collapsing (8 posts)

  1. smudley
    Posted 3 years ago #

    Sorry for kind of re-posting this, I did this under a resolved post not realizing it at first.

    AFAQ works properly in the preview of the page with [faq] in the body but it also shows horizontal scroll bars.

    When I check it on my live site AFAQ is expanded and will not collapse and the scroll bars are still there.

    I get the same results across IE 8/9, Safari, Opera, Firefox and Chrome.

    Select the faqs menu choice,

    Please advise.


  2. John Gardner
    Plugin Author

    Posted 3 years ago #

    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?

  3. smudley
    Posted 3 years ago #

    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.

  4. John Gardner
    Plugin Author

    Posted 3 years ago #

    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.

  5. smudley
    Posted 3 years ago #

    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 ---*/
    [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?

  6. John Gardner
    Plugin Author

    Posted 3 years ago #

    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.

  7. John Gardner
    Plugin Author

    Posted 3 years ago #

    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?

  8. smudley
    Posted 3 years ago #

    I added it, no change.
    Well thanks for trying.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Arconix FAQ
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic