• Hi, everyone. I’m having a hard time installing Foundation in a WordPress website I’m developing. I’ve tried the following code:

    function enqueue_foundation() {
    wp_deregister_script(‘jquery’);
    wp_enqueue_style( ‘foundation-css’, get_template_directory_uri() . ‘/css/foundation.min.css’);
    //wp_enqueue_script( ‘foundation-js’, get_template_directory_uri() . ‘/js/foundation.min.js’);
    wp_enqueue_script( ‘foundation-jquery’, get_template_directory_uri() . ‘/js/vendor/jquery.js’);
    wp_enqueue_script( ‘foundation-js’, get_template_directory_uri() . ‘/js/foundation.min.js’, array(‘foundation-jquery’));
    }

    add_action(‘wp_enqueue_scripts’, ‘enqueue_foundation’);

    However, this is breaking the site’s layout. I’ve also tried using a plugin to add the CSS and the JavaScript files from a CDN, but this also doesn’t solve the problem.

    How should I proceed? Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress and Zurb Foundation’ is closed to new replies.