Join Morten Rand-Hendriksen for an in-depth discussion in this video CSS custom properties (variables), part of WordPress: Building Progressive Themes with WP Rig.
- [Instructor] One major frustration when working with CSS … is you often have to declare a property … in multiple different rules, … but you want it to stay the same. … That could be a font family, or a color, … or a margin, or a width, or something else. … And any time you need to make an update … to that font family, or color, or whatever, you have to make … an update to every single instance of that property, … which is just opening a door to a bunch of errors. … To get around this problem, … preprocessors like Sass introduced variables. … You declare the value once in a variable, … and then you just call that variable later on. … Then if you want to change the value, … you change it in the variable, and the change will propagate … throughout the rest of the stylesheet. … Now we have that same functionality in pure CSS, … only it's not called CSS Variables, … it's called CSS Custom Properties. … But it's exactly the same thing. … It's pretty straightforward. … You declare a new custom property …
- Setting up a WordPress theme development environment
- Installing WP Rig
- Building, activating, and testing a new progressive theme
- Editing CSS
- Using web fonts
- Editing existing templates
- Adding advanced features
- Translating a theme
Skill Level Beginner
WP Rig: A primer2m 5s
1. Configure a Development Environment for WP Rig
2. Install and Configure WP Rig
4. PHP and WordPress Templates
6. Extending WP Rig: A Practical Example
7. Going Further with WP Rig
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.