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 How to Make a Website with WordPress WordPress Widgets and Custom Menus How to Create Widgetized Areas in WordPress

Renata Walton
Renata Walton
1,396 Points

fyi functions.php best practice style.css

Hi,

I'm quite new to all this but it occurred to me that in order to follow this tutorial and stick to the best practice guidance you would need to include the additional php code (from functions.php in the project downloads) to the existing functions.php file and NOT overwrite it. Similarly any additional css code from the downloadable style.css to the existing style.css - to keep this all working.

The header.php file was a new addition so all is fine with that one.

it's worked for me, hope it helps cheers

2 Answers

Stanley Thijssen
Stanley Thijssen
22,831 Points

Normally it shouldnt matter if you overwrite it or not. It should be both working fine.

Renata Walton
Renata Walton
1,396 Points

I should have been more specific - It does matter if you're using the best practice method 'wp_enqueue' and not the '@import' method in these tutorials

https://codex.wordpress.org/Child_Themes