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 From Bootstrap to WordPress Setup a Bootstrap Theme Add Bootstrap CSS via the functions.php File

Changing bootstrap.min.css to a different CSS file, but the old file "bootstrap.min.css" still shows up in source code.

I have just finished the entire Bootstrap / Wordpress track and I decided to have a play around and customise the themes css by change the bootstrap.min.css to a new css file. However, when I deleted bootstrap.min.css from my source files and add my new css file and then changed the code in function.php to work with this. The new css file is showing in the source file however the is still the old css file above it. If anyone could help it would be much appreciated, I read up a little on the issues and tried a few things but I am yet to find a solution.

2 Answers

Don't delete or rename the bootstrap files. Keep them intact and linked. Add a new CSS/JS for your custom styles and scripts and link those as well. You don't want to be changing bootstrap rules, you just add new rules over the top when you want to change something.

Hi, thanks for the reply. I actually resolved my issue in the end, however I think your right best practice would be not to touch them. Lesson learnt! Thank you.