Top Banner
S Using Firebug to Find & Edit CSS WordCamp Nashville 2014
19

Css basics

May 08, 2015

Download

Design

Marcus Crutcher

CSS Basics - using Firebug to identify & modify CSS in WordPress sites
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Css basics

S

Using Firebug to Find& Edit CSS

WordCamp Nashville 2014

Page 2: Css basics

About Me

Marcus Crutcher - @mcsociallyOwner, cSocially Media http://csocially.com Web design, SEO, Social, Content iThemes Builder advocate

WordPress fan & user since 2011

1st WordCamp – 2012

Page 3: Css basics

What We’ll Cover Today

1. What is CSS

2. How to Add Custom CSS via JetPack plugin

3. What is Firefox Firebug?

4. How to use Firebug to identify & modify CSS on live site.

5. Time permitting >> How to Use Chrome Inspect Element

Page 4: Css basics
Page 5: Css basics

Where to Find CSS in WordPress

Login to your WordPress site.

From your Dashboard, go to Appearance > Editor

Page 6: Css basics

Finding your Stylesheet

Don’t touch the .php files unless you know what you’re doing!

Page 7: Css basics

Active Jetpack Plugin

If you don’t have Jetpack already, search the WP Plugin Repository for Jetpack, download, & activate it.Connect Jetpack to your WordPress.com account to get access to the CSS Editor

Page 8: Css basics

What is Jetpack Custom CSS?

Page 9: Css basics

What is Firebug?

Page 10: Css basics

Why Use Firebug?

Easily preview & test html & CSS changes in real time

No harm, no foul – changes don’t affect site until you add to your stylesheet or custom CSS area

Saves a ton of time, allows for easy debugging

Ability to open Firefox controls in new window

It’s FREE

Page 11: Css basics

Get & Start Firebug

To get Firebug, go to http://getfirebug.com/

To use, click the Firebug icon on your Firefox browser

Page 12: Css basics

Firefox Opens

Firefox splits your screen, opening it’s control window. This is where you will identify & modify CSS

Page 13: Css basics

Inspect Page Elements

Page 14: Css basics

CSS Tips

When styling for responsive sites, use percentage, EM & REM instead of PX designation For example: .container {

width: 100%; max-width: 650px; } Instead of .container { Width: 650px; }

Page 15: Css basics

CSS Tips

The last CSS command to load wins. Imagine you have .menu li {font-size:14px;} at the

top of your stylesheet And you have .menu li {font-size:21px;} at the

bottom of your stylesheet Bottom one wins.

Use !important after attribute if you have the selector correct but the attribute just isn’t working

Page 16: Css basics

Fun with CSS

CSS Background Patterns http://lea.verou.me/css3patterns/

CSS Button Generator http://www.cssbuttongenerator.com/

Page 18: Css basics

Chrome Inspect Element

Simply open Chrome, right click on the website & choose Inspect Element

To access stylesheet, click Sources tab & follow instructions to open files

Page 19: Css basics

WordPress Default CSS

WordPress generates default classes & IDs http://www.wpbeginner.com/wp-themes/default-

wordpress-generated-css-cheat-sheet-for-beginners/