obenland / the-bootstrap

A responsive WordPress Theme based on Bootstrap, from Twitter.
http://en.wp.obenland.it/the-bootstrap/
GNU General Public License v3.0
110 stars 46 forks source link

child theme / css #11

Closed paulnett closed 12 years ago

paulnett commented 12 years ago

re: child theme / css

i did some changes to 'the-bootstrap' functions.php file so that the calls to the css files use 'get stylesheet', instead of 'get template'. this allows for me to reference the child theme's versions of 'bootstrap' and 'bootstrap-min' css files.

this seems to be the only way i can make changes that render. i would rather not edit the parent themes functions.php file, and i would rather just make changes in the child themes css file.

can you explain what would be the best way to use the child theme files rather than edit the parent theme?

obenland commented 12 years ago

The best way would probably to hook into 'init' on a priority of >10 in you functions.php file. Then you can deregister the stylesheets from the Parent Theme and register you own. If you use the same handles, they also should be enqueued automatically.

paulnett commented 12 years ago

Stoked! Got it working. Thanks a ton. I have another question in regards to page templates. I will open a new issue.