SlideShare a Scribd company logo
How to Use CSS3 in
WordPress
WordCamp Toronto 2015
by
Suzette Franck
Who I Am
HTML and CSS teacher for Girl Develop It, 

Los Angeles Chapter
Freelancing Front End Developer
Born in Hollywood, Resides in S. California
Over 20 Years Coding & Web Development
Developed Over 300 WordPress Sites
Spoken at 25 WordCamps US & Canada
Regular Contributor: WPwatercooler.com
Hobbies: Crocheting & Adult Coloring Books
Twitter:
suzette_franck
My Goal
Teach you at least one thing that
you didn’t know before that will
change how you work forever
What We Will Cover?
What is CSS/CSS3?
Using CSS in WordPress
CSS Resources
What is CSS/CSS3?
CSS/CSS3 Basics
Cascading Style Sheet language written in plain text
Used with HTML to give style/design to HTML elements
CSS3 is he latest evolution of CSS, which is meant to
extend CSS 2.1, the previous version
CSS3 is backwards compatible with all versions of CSS
In WordPress, CSS code is most often put in a style.css
plain text file in the starter, parent, or child theme
folder in wp-content
Most themes have an “Edit CSS” option, or you can
install a plugin to add your own CSS.
Example of CSS Code
Terminology & 

Basic CSS Syntax
CSS Terminology
Syntax refers to the proper format with punctuation for a line of
code
Selectors select the HTML element to be styled and is placed on
the left side of curly braces, which surround the style
declarations
Each declaration includes one property: value(s); pair
Spaces and tabs are ignored in CSS, use often and generously
for easy reading!
p { 

background-color: black;

color: red; 

font-size: 1.5em;

}
CSS Syntax
h1 {
color: deeppink;
font-size: 18px;
font-weight: bold;
}
selector {
property: value;
}
CSS Properties
browse
http://www.w3schools.com/cssref/
or
google it
CSS Comments
p {
color: #FF0000; /* red */
/* This is a single-line comment */
text-align: center;
}
/* ——————-This is a
xxxxxxxx multi-line xxxxxxxx
comment ————- */
CSS Specificity
More specific overrides less specific
IDs override classes
Inline CSS overrides IDs
!important used at the end of a declaration overrides Inline
CSS
Closest rule or declaration beats out remote declarations
http://www.smashingmagazine.com/2007/07/css-
specificity-things-you-should-know/
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
What color is the “Home” text based on below styles?
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
What color is the “Home” text based on below styles?
CSS Specificity Quiz
a { color: aqua; }
ul { color: deeppink; }
.warning { color: red; }
#mainNav { color: yellow; }
<ul class=“warning” id=“mainNav”>
<li><a href=“/“>Home</a></li>
</ul>
Bonus: what color is the bullet?
Inspecting CSS
Inspecting CSS w/Chrome
View > Developer > Developer Tools
or right-mouse click on the page > Inspect Element
Inspecting CSS w/Chrome
New CSS3 Modules
New CSS3 Modules
Colors & Transparency
CSS Gradients
Border Radius (Rounded Corners)
Box Shadow & Text Shadow
Transformations and Animations
Web Fonts @font-face
Media Queries (Responsive Design)
CSS3 Colors
CSS2: 17 Color Names / CSS3: 140 Color Names
http://www.w3schools.com/cssref/css_colornames.asp
New Alpha on Reg-Green-Blue Values
rgba( 255, 0, 0, 0.5 );
Specify Hue, Saturation, Lightness, alone or with Alpha Values
hsla( 120, 100%, 50%, 0.5 );
Opacity Property (0 transparent 1 opaque)
http://www.w3schools.com/cssref/css_colors_legal.asp
CSS3 Colors
CSS3 Gradients
.fancy {
background: -webkit-linear-gradient(red, green, blue); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(red, green, blue); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(red, green, blue); /* For Firefox 3.6 to 15 */
background: linear-gradient(red, green, blue); /* Standard syntax */
}
http://www.w3schools.com/css/
css3_gradients.asp
CSS3 Gradients
http://www.colorzilla.com/gradient-editor/
border-radius
Accepts px or %
Don’t forget to add vendor prefixes!
.rounded {
border-top-left-radius: 5px;
border-top-right-radius: 10px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 15px;
}
or use the shorthand:
.rounded {
border-radius: 5px 10px 20px 15px;
}
border-radius
http://border-radius.com/
Using CSS3 in WordPress
Where Do You Put CSS in WordPress?
Installed Theme’s Custom CSS Option
Jetpack’s “Edit CSS” Module (my favorite)
Simple Custom CSS Plugin (if not using Jetpack)
Page/Post editor via Inline Styles
Child Theme’s style.css file
Starter Theme’s style.css file
Jetpack’s Edit CSS Module
Once activated, go to Appearance > Edit CSS
Simple Custom CSS
Once activated, go to Appearance > Custom
Inline CSS in Editor
Add style attribute to opening tag in Text view
<p style=“property: value; property: value;”>
Considered hacky/janky/ bad practice, but works in a fix!
Child Theme’s style.css
Child Themes inherit Parent Theme’s functionality
Modifications not overwritten when Parent Theme updates
Best method for extensive modifications
More info on creating Child Themes on the Codex:



https://codex.wordpress.org/Child_Themes
Child Theme Plugins (Orbisius, One-click, Configurator)
Starter Theme’s style.css
Starter Themes include basic theme files
Make your own custom theme from them
Where Do You Not Put CSS?
Linked to a stylesheet in the header.php (use wp_enqueue)
Using the native WordPress Theme Editor to edit style.css
directly ( No undo or version history! )
CSS Resources
CSS Resources
http://www.csszengarden.com/
http://www.w3schools.com/css/css3_intro.asp
https://css-tricks.com/+ https://css-tricks.com/almanac
http://girldevelopit.com Take an HTML/CSS class
Q & A
Any Questions?
Thank you for being here!
Suzette Franck
Twitter: @suzette_franck

linkedin & speakerdeck & slideshare

More Related Content

What's hot (20)

PPTX
Doing More with LESS for CSS
Todd Anglin
 
PPTX
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
PDF
Haml And Sass In 15 Minutes
Patrick Crowley
 
KEY
Why You Need a Front End Developer
Mike Wilcox
 
PPTX
From PSD to WordPress Theme: Bringing designs to life
Derek Christensen
 
PDF
CSS For Backend Developers
10Clouds
 
ODP
Worry free web development
Estelle Weyl
 
PDF
Using LESS, the CSS Preprocessor: J and Beyond 2013
Andrea Tarr
 
PDF
6 Steps to Make Your CSS Code More Maintainable
10Clouds
 
PDF
CSS Best practice
Russ Weakley
 
PDF
Responsive web design
Sean Wolfe
 
PPTX
HTML CSS and Web Development
Rahul Mishra
 
PDF
LESS, the CSS Preprocessor
Andrea Tarr
 
PDF
CSS Tricks for WordPress - WordCamp Phoenix
Sara Cannon
 
PDF
CSS in React
Joe Seifi
 
PPTX
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Estelle Weyl
 
PPT
Css best practices style guide and tips
Chris Love
 
PDF
Using Core Themes in Drupal 8
Suzanne Dergacheva
 
PDF
Responsive & Responsible Web Design in DNN
gravityworksdd
 
PDF
CSS pattern libraries
Russ Weakley
 
Doing More with LESS for CSS
Todd Anglin
 
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Haml And Sass In 15 Minutes
Patrick Crowley
 
Why You Need a Front End Developer
Mike Wilcox
 
From PSD to WordPress Theme: Bringing designs to life
Derek Christensen
 
CSS For Backend Developers
10Clouds
 
Worry free web development
Estelle Weyl
 
Using LESS, the CSS Preprocessor: J and Beyond 2013
Andrea Tarr
 
6 Steps to Make Your CSS Code More Maintainable
10Clouds
 
CSS Best practice
Russ Weakley
 
Responsive web design
Sean Wolfe
 
HTML CSS and Web Development
Rahul Mishra
 
LESS, the CSS Preprocessor
Andrea Tarr
 
CSS Tricks for WordPress - WordCamp Phoenix
Sara Cannon
 
CSS in React
Joe Seifi
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Estelle Weyl
 
Css best practices style guide and tips
Chris Love
 
Using Core Themes in Drupal 8
Suzanne Dergacheva
 
Responsive & Responsible Web Design in DNN
gravityworksdd
 
CSS pattern libraries
Russ Weakley
 

Viewers also liked (20)

PDF
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
Brendan Sera-Shriar
 
PDF
Systematic Unit Testing
scotchfield
 
PDF
Help Me Help You: Practical Tips for Designers from A WordPress Developer
daraskolnick
 
PPTX
Building and Maintaining A Remote Workforce - A Startup Story
Sucuri
 
PPTX
Ecomm 101
Al Davis
 
PPTX
Using Actions and Filters in WordPress to Make a Plugin Your Own
Brian Hogg
 
PDF
Here Be Dragons - Debugging WordPress
Rami Sayar
 
PDF
How I Made a Career Using WordPress Without Knowing a Line of Code
Andrea Zoellner
 
PDF
Wordcamp_mcglade_ux_mashups
Analytical Engine Interactive Inc.
 
PDF
WordCamp Toronto 2015- API Simple Talk
ting-y
 
PDF
Community Consultation Creates Compelling Content
Christine Pollock
 
PDF
You have 2 hands Toronto
Shayda Torabi
 
PDF
A Noob's Journey to the Core
Ryan Welcher
 
PPTX
Mystery solved pages vs posts
Trailer Trash Design
 
PDF
Writing Secure Code for WordPress
Shawn Hooper
 
PDF
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
PPTX
Managed WordPress Demystified
NewPath Consulting (Technology for Small Business)
 
PDF
Best Friend || Worst Enemy: WordPress Multisite
Taylor McCaslin
 
PDF
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Jesse Emmanuel Rosario
 
PPTX
Multilingual content with WordPress
Desaulniers-Simard
 
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
Brendan Sera-Shriar
 
Systematic Unit Testing
scotchfield
 
Help Me Help You: Practical Tips for Designers from A WordPress Developer
daraskolnick
 
Building and Maintaining A Remote Workforce - A Startup Story
Sucuri
 
Ecomm 101
Al Davis
 
Using Actions and Filters in WordPress to Make a Plugin Your Own
Brian Hogg
 
Here Be Dragons - Debugging WordPress
Rami Sayar
 
How I Made a Career Using WordPress Without Knowing a Line of Code
Andrea Zoellner
 
Wordcamp_mcglade_ux_mashups
Analytical Engine Interactive Inc.
 
WordCamp Toronto 2015- API Simple Talk
ting-y
 
Community Consultation Creates Compelling Content
Christine Pollock
 
You have 2 hands Toronto
Shayda Torabi
 
A Noob's Journey to the Core
Ryan Welcher
 
Mystery solved pages vs posts
Trailer Trash Design
 
Writing Secure Code for WordPress
Shawn Hooper
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
Best Friend || Worst Enemy: WordPress Multisite
Taylor McCaslin
 
Delightful Design with the Kano Model (WordCamp Toronto 2015)
Jesse Emmanuel Rosario
 
Multilingual content with WordPress
Desaulniers-Simard
 
Ad

Similar to How to use CSS3 in WordPress (20)

PDF
01 Introduction To CSS
crgwbr
 
PDF
Pfnp slides
William Myers
 
PPTX
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
PPTX
Web - CSS 1.pptx
haroon451422
 
PDF
2 introduction css
Jalpesh Vasa
 
PPTX
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
PDF
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
PPTX
David Weliver
Philip Taylor
 
PPTX
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
PPTX
Unit-3-CSS-BWT.pptx
Tanu524249
 
PPT
Shyam sunder Rajasthan Computer
shyamverma305
 
PDF
Evolution of CSS
Ecaterina Moraru (Valica)
 
PPTX
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
PDF
Introduction to CSS3
Seble Nigussie
 
PPT
CSS Training in Bangalore
rajkamal560066
 
PPT
Css
NIRMAL FELIX
 
PPTX
CSS3 basics for beginners - Imrokraft
imrokraft
 
PDF
Css3
Renzil D'cruz
 
PPSX
Introduction to css
Evolution Network
 
01 Introduction To CSS
crgwbr
 
Pfnp slides
William Myers
 
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Web - CSS 1.pptx
haroon451422
 
2 introduction css
Jalpesh Vasa
 
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
David Weliver
Philip Taylor
 
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
Unit-3-CSS-BWT.pptx
Tanu524249
 
Shyam sunder Rajasthan Computer
shyamverma305
 
Evolution of CSS
Ecaterina Moraru (Valica)
 
Internet tech &amp; web prog. p4,5
Taymoor Nazmy
 
Introduction to CSS3
Seble Nigussie
 
CSS Training in Bangalore
rajkamal560066
 
CSS3 basics for beginners - Imrokraft
imrokraft
 
Introduction to css
Evolution Network
 
Ad

More from Suzette Franck (10)

PDF
WCOC Plugin Palooza Entry: WP Art Store
Suzette Franck
 
PDF
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
Suzette Franck
 
PDF
GDI - Intro to WordPress
Suzette Franck
 
PDF
Introduction to Backups and Security
Suzette Franck
 
PDF
WP Super Cache - Topanga WordPress Meetup
Suzette Franck
 
ODP
Buddypress Pasadena Meetup
Suzette Franck
 
ODP
WordPress Security
Suzette Franck
 
ODP
Design Best Practices for WordPress
Suzette Franck
 
ODP
Jetpack 2.0
Suzette Franck
 
PPTX
BuddyPress OCWC 2010
Suzette Franck
 
WCOC Plugin Palooza Entry: WP Art Store
Suzette Franck
 
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
Suzette Franck
 
GDI - Intro to WordPress
Suzette Franck
 
Introduction to Backups and Security
Suzette Franck
 
WP Super Cache - Topanga WordPress Meetup
Suzette Franck
 
Buddypress Pasadena Meetup
Suzette Franck
 
WordPress Security
Suzette Franck
 
Design Best Practices for WordPress
Suzette Franck
 
Jetpack 2.0
Suzette Franck
 
BuddyPress OCWC 2010
Suzette Franck
 

Recently uploaded (20)

PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PPTX
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Practical Applications of AI in Local Government
OnBoard
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 

How to use CSS3 in WordPress

  • 1. How to Use CSS3 in WordPress WordCamp Toronto 2015 by Suzette Franck
  • 2. Who I Am HTML and CSS teacher for Girl Develop It, 
 Los Angeles Chapter Freelancing Front End Developer Born in Hollywood, Resides in S. California Over 20 Years Coding & Web Development Developed Over 300 WordPress Sites Spoken at 25 WordCamps US & Canada Regular Contributor: WPwatercooler.com Hobbies: Crocheting & Adult Coloring Books Twitter: suzette_franck
  • 3. My Goal Teach you at least one thing that you didn’t know before that will change how you work forever
  • 4. What We Will Cover? What is CSS/CSS3? Using CSS in WordPress CSS Resources
  • 6. CSS/CSS3 Basics Cascading Style Sheet language written in plain text Used with HTML to give style/design to HTML elements CSS3 is he latest evolution of CSS, which is meant to extend CSS 2.1, the previous version CSS3 is backwards compatible with all versions of CSS In WordPress, CSS code is most often put in a style.css plain text file in the starter, parent, or child theme folder in wp-content Most themes have an “Edit CSS” option, or you can install a plugin to add your own CSS.
  • 9. CSS Terminology Syntax refers to the proper format with punctuation for a line of code Selectors select the HTML element to be styled and is placed on the left side of curly braces, which surround the style declarations Each declaration includes one property: value(s); pair Spaces and tabs are ignored in CSS, use often and generously for easy reading! p { 
 background-color: black;
 color: red; 
 font-size: 1.5em;
 }
  • 10. CSS Syntax h1 { color: deeppink; font-size: 18px; font-weight: bold; } selector { property: value; }
  • 12. CSS Comments p { color: #FF0000; /* red */ /* This is a single-line comment */ text-align: center; } /* ——————-This is a xxxxxxxx multi-line xxxxxxxx comment ————- */
  • 13. CSS Specificity More specific overrides less specific IDs override classes Inline CSS overrides IDs !important used at the end of a declaration overrides Inline CSS Closest rule or declaration beats out remote declarations http://www.smashingmagazine.com/2007/07/css- specificity-things-you-should-know/
  • 14. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> What color is the “Home” text based on below styles?
  • 15. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> What color is the “Home” text based on below styles?
  • 16. CSS Specificity Quiz a { color: aqua; } ul { color: deeppink; } .warning { color: red; } #mainNav { color: yellow; } <ul class=“warning” id=“mainNav”> <li><a href=“/“>Home</a></li> </ul> Bonus: what color is the bullet?
  • 18. Inspecting CSS w/Chrome View > Developer > Developer Tools or right-mouse click on the page > Inspect Element
  • 21. New CSS3 Modules Colors & Transparency CSS Gradients Border Radius (Rounded Corners) Box Shadow & Text Shadow Transformations and Animations Web Fonts @font-face Media Queries (Responsive Design)
  • 22. CSS3 Colors CSS2: 17 Color Names / CSS3: 140 Color Names http://www.w3schools.com/cssref/css_colornames.asp New Alpha on Reg-Green-Blue Values rgba( 255, 0, 0, 0.5 ); Specify Hue, Saturation, Lightness, alone or with Alpha Values hsla( 120, 100%, 50%, 0.5 ); Opacity Property (0 transparent 1 opaque) http://www.w3schools.com/cssref/css_colors_legal.asp
  • 24. CSS3 Gradients .fancy { background: -webkit-linear-gradient(red, green, blue); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(red, green, blue); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, green, blue); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, green, blue); /* Standard syntax */ } http://www.w3schools.com/css/ css3_gradients.asp
  • 26. border-radius Accepts px or % Don’t forget to add vendor prefixes! .rounded { border-top-left-radius: 5px; border-top-right-radius: 10px; border-bottom-right-radius: 20px; border-bottom-left-radius: 15px; } or use the shorthand: .rounded { border-radius: 5px 10px 20px 15px; }
  • 28. Using CSS3 in WordPress
  • 29. Where Do You Put CSS in WordPress? Installed Theme’s Custom CSS Option Jetpack’s “Edit CSS” Module (my favorite) Simple Custom CSS Plugin (if not using Jetpack) Page/Post editor via Inline Styles Child Theme’s style.css file Starter Theme’s style.css file
  • 30. Jetpack’s Edit CSS Module Once activated, go to Appearance > Edit CSS
  • 31. Simple Custom CSS Once activated, go to Appearance > Custom
  • 32. Inline CSS in Editor Add style attribute to opening tag in Text view <p style=“property: value; property: value;”> Considered hacky/janky/ bad practice, but works in a fix!
  • 33. Child Theme’s style.css Child Themes inherit Parent Theme’s functionality Modifications not overwritten when Parent Theme updates Best method for extensive modifications More info on creating Child Themes on the Codex:
 
 https://codex.wordpress.org/Child_Themes Child Theme Plugins (Orbisius, One-click, Configurator)
  • 34. Starter Theme’s style.css Starter Themes include basic theme files Make your own custom theme from them
  • 35. Where Do You Not Put CSS? Linked to a stylesheet in the header.php (use wp_enqueue) Using the native WordPress Theme Editor to edit style.css directly ( No undo or version history! )
  • 38. Q & A Any Questions?
  • 39. Thank you for being here! Suzette Franck Twitter: @suzette_franck
 linkedin & speakerdeck & slideshare