• 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 1 replies (of 1 total)
  • Plugin Author ben.moody

    (@benmoody)

    Zurb Foundation is a full site development framework. It’s not designed to be retrofitted into another framework or theme. You will find the as a standalone framework it’s css and js will conflict or override items when applied to an existing theme or framework.

    If you are looking to use foundation to develop a WordPress theme from scratch you can download the framework from zurb and use it as a base for your theme development

Viewing 1 replies (of 1 total)
  • The topic ‘Problem adding Zurb to WordPress’ is closed to new replies.