• Hi,

    I am building a child theme of FoundationPress (https://github.com/olefredrik/FoundationPress) including a number of plugins.

    My problem is that none of the JavaScript files provided by plugins are being loaded. I checked this in Chrome’s dev tools – the only scripts showing up in the Resources tab are those called by FoundationPress.

    The same issue occurs when using FoundationPress (instead of the child theme), but not with TwentyFourteen, so the issue looks to be the theme. I have also tried deactivating all plugins and reactivating one at a time, but none work even if they are the only one.

    wp_head() is in place in header.php, just before the closing </head> tag.

    Any suggestions greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The error occurred because of a conflict between jQuery version that is bundled with WordPress and jQuery version included with the Foundation. The WP-bundled version is now unregistered. FoundationPress now uses the same jQuery version as Foundation. The issue is closed and it should now work as you would expect. https://github.com/olefredrik/foundationpress

    I also made some changes to how FoundationPress handles scripts. jQuery, Modernizr and Foundation will be copied from ‘bower_components’ to ‘js’ where unminified scripts will be minified before enqueued correctly in functions.php. See Gruntfile.js for details.

    (Please note that you must run the ‘grunt’ command in your terminal for the scripts to be copied and minified).

    Best regards,
    Ole Fredrik

    Thread Starter doubleedesign

    (@doubleedesign)

    Thanks so much for addressing this in a timely fashion olefredrik! I will upgrade to the latest release of FoundationPress ASAP and post here if I come across any other related issues.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Theme: FoundationPress] Plugin JS not loading’ is closed to new replies.