Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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):"