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 trialGreg Summers
2,137 PointsBootstrap JS via functions.php
After adding the function theme_styles refreshing the site all is well.
After adding the function theme_js I'm getting this error: Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /Applications/MAMP/htdocs/bootstrap-to-wp/wp-content/themes/bootstrap-to-wp/functions.php on line 19.
line 19: $wp_scripts;->add_data( 'html5_shiv', 'conditional', 'lt IE 9' );
I can't tell what I'm doing wrong.
2 Answers
Bianca Ene
3,908 Points$wp_scripts -> add_data('html5_shiv', 'conditional', 'lt IE 9');
remove the semicolon after $wp_scripts
Greg Summers
2,137 PointsThank you very much, I totally missed that, from cutting and pasting. I need to study PHP.
Bianca Ene
3,908 PointsYou're welcome. And don't worry, with a little practice you'll get used to it pretty soon.