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

WordPress

Changing root WordPress folder.

Earlier in the course I wanted to change my root folder title (where all the wordpress files were stored) to a more unique name to avoid confusion later on. Its original title was 'wordpress', then I changed it to 'wordpressDemo'.

Unbeknownst, I derailed the entire template source path to all my css and js files in my functions.php file. How come the get_template_directory() function didnt correct this on its own?

Here are some errors occurring in my console:

ttp://localhost:8888/wordpress/wp-content/themes/portfolio/js/foundation.js?ver=4.7.1 Failed to load resource: the server responded with a status of 404 (Not Found)

http://localhost:8888/wordpress/wp-content/themes/portfolio/js/app.js?ver=4.7.1 Failed to load resource: the server responded with a status of 404 (Not Found)

...