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.

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Creating a Basic Blog Listing Template

Chris Sehnert
Chris Sehnert
30,857 Points

style.css works inconsistently......

I have found that the style.css file inside of my bootstrap-to-wp theme directory only works when it wants to....???.......I am using Chrome to browse the site on a local host setup...at times changes to the style.css file take ....other times after some page refreshing.....other times not at all....seemingly......I have double and triple checked the functions.php file syntax, and the css syntax repeatedly.....and again....it works some of the time....so ....I'm getting frustrated....

2 Answers

Annet de Boer
Annet de Boer
900 Points

Could be a caching problem. Try working in "Incognito mode" in Chrome and sometimes close your browser window and open it again to start over (incognito mode is CTRL+SHIFT+N on Windows; or find it in the Chrome menu button at the right of the addressbar.

Chris Sehnert
Chris Sehnert
30,857 Points

Thank YOU!!!...SO MUCH!.....I love it when things work......You are exactly right.....I'm not sure why I haven't experienced this in the past....???....but Incognito mode does fix the issue......I was looking at some Chrome settings and there is one setting where you can clear out certain cache type settings hourly or daily.....those settings were all new to me.....I'm a Safari user in general, but use Chrome for development purposes......anyway....I'm not sure what settings will be best there...but Incognito Mode......Awesome.....Thank you, again.... -chris

Annet de Boer
Annet de Boer
900 Points

You're welcome! Glad you got it working now :-) One handy trick is also to do a 'hard refresh'; the normal refresh / reload button obviously reloads the page but also makes use of the cache. When you hold down the CTRL button on your keyboard when you click the reload button it also bypasses the cache.. (this button: http://www.thebmwclubsw.org.uk/Graphics/chromerefresh.png )

As for the cache settings: caching is handy when you want to speed things up while surfing the net (it loads images and other stuff from your computer storage instead of the webserver) but when you use Chrome only for developing or when you don't experience a slow internetconnection you can disable caching or set it to hourly or daily without any problem.

Greetings!