WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Arconix FAQ] FAQ not collapsing

[Resolved] [Plugin: Arconix FAQ] FAQ not collapsing

  • 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.

    http://plane2paradise.com/
    Select the faqs menu choice,

    Please advise.

    http://wordpress.org/extend/plugins/arconix-faq/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Gardner
    Participant

    @jgardner03

    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.

    Plugin Author John Gardner
    Participant

    @jgardner03

    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.

    Plugin Author John Gardner
    Participant

    @jgardner03

    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.

    Plugin Author John Gardner
    Participant

    @jgardner03

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Arconix FAQ] FAQ not collapsing’ is closed to new replies.