Josh Collinsworth: Be Classless – Optimizing Your CSS for WordPress

Continue the discussion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Published

November 17, 2015

It’s easy to get caught up adding HTML classes (and IDs) to each and every element we want to style, but the fact is, WordPress helps us out with specific targeting by adding its own classes and IDs to certain elements on every page and post. Cleverly utilizing WordPress’s default page build along with CSS’s pseudo classes and combinators makes it possible to be highly specific with our targeted styles while leaving the original HTML completely alone. In short, if we look for ways, we can often avoid adding more classes and wrapping text in spans to have WordPress and CSS do the work for us.

Rate this:

Event

WordCamp Omaha 2015 8

Speakers

Josh Collinsworth 2

Tags

CSS 81
HTML 8
structure 5

Language

English 5397

Download
MP4: Low, Med, High
OGG: Low
Subtitles
Subtitle this video →
Producer
%d bloggers like this: