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 trial


css not loading with MAMP Yosemite

I have a problem with the css not loading using wp_enqueue_style. Spent last 2 hours troubleshooting, but I can't get the css to work. Maybe it is a permissions problem? I'm using MAMP on a Mac with the ports set to 80. I've already tried sudo chmod -R 775 on the theme directory without success. I've tried to echo the path of get_template_directory_uri plus /style.css and path is correct so it seems. I've no idea what is wrong... Can anyone help me? :)

Code: https://github.com/benzai/bumpress/blob/master/wp-content/themes/bumthemes/functions.php

1 Answer

I've managed to fix this by adding wp_head(); in header.php The problem was unrelated to MAMP.

"Example. Plugins and WordPress core use this function to insert crucial elements into your document (e.g., scripts, styles, and meta tags). Always put wp_head() just before the closing tag of your theme (usually in header.php):"