Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMark Chamberlain
1,972 Pointsstyle sheet not loaded all the way?
I am following the bootstrap on wordpress. I have added.
<?php
function theme_styles() {
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'main_css', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts' , 'theme_styles' );
function theme_js () {
wp_register_script( 'html5_shiv','https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js', '','', false );
}
?>
into the function php. but the site does show the theme code loaded on there. how ever the theme has come through in some bits i.e the contaner and button styles.
any ideas?
2 Answers
Jacob Mishkin
23,118 Pointsis this a new site? are you using gulp or grunt?
Mark Chamberlain
1,972 Pointsyes it is a new site and what is gulp or grunt?
Jacob Mishkin
23,118 Pointsgulp/grunt are javascript task managers that do a lot of things to process files when developing. One of the big things is using a watch command to compile sass to css. I take it that the bootstrap's sass files and compiles them. Here is a really good blog post about enqueueing styles: