Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

WordPress and Zurb Foundation

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 67836

Trending Articles