Skip navigation

Detect when the sidebar has widgets

Detect when the sidebar has widgets: WordPress: Building Themes from Scratch Using Underscores
Detect when the sidebar has widgets: WordPress: Building Themes from Scratch Using Underscores

Learn how to use a conditional statement and a custom filter to change the body classes depending on whether the sidebar is currently being displayed.

Resume Transcript Auto-Scroll
Skill Level Advanced
7h 5m
Duration
471,066
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.