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 trialAvery Kushner
854 PointsCan't get the styles to apply to the page
The style shows up under sources in developer tools, but doesn't apply any styles to the html.
1 Answer
Sherie LaPrade
Courses Plus Student 4,007 PointsThe code in the video is a bit outdated, here is what my sister and I used that works:
function wptreehouse_badges_styles() {
wp_enqueue_style( 'wptreehouse_badges_styles', plugins_url( 'wptreehouse-badges.css', __FILE__ ) );
}
add_action( 'admin_head', 'wptreehouse_badges_styles' );
Jill Ferron
5,023 Pointsthanks Sherie, worked for me.
Avery Kushner
854 PointsAvery Kushner
854 PointsHere is my code:
function wptreehouse_badges_styles() {