psd to wordpress theme

47
PSD to WordPress Theme Lauren Pittenger @laurenpittenger 1

Upload: lauren-pittenger

Post on 22-Jan-2018

34 views

Category:

Design


2 download

TRANSCRIPT

Page 1: PSD to WordPress Theme

PSD to WordPress Theme

Lauren Pittenger@laurenpittenger

1

Page 2: PSD to WordPress Theme

2

Page 3: PSD to WordPress Theme

Why workthis way?

3

Page 4: PSD to WordPress Theme

Strategy

14

Page 5: PSD to WordPress Theme

Efficiency

25

Page 6: PSD to WordPress Theme

Intentionality

16

Page 7: PSD to WordPress Theme

Design

7

Page 8: PSD to WordPress Theme

Development

8

Page 9: PSD to WordPress Theme

9

Page 10: PSD to WordPress Theme

Underscores

10

Page 11: PSD to WordPress Theme

Starter theme1,000-hour head startWell-commentedHandy template tagsHTML5JavaScript mobile menuCSS or Sass

Why Underscores?

11

Page 12: PSD to WordPress Theme

Other Starter Themes

Make your own!

BonesFoundationGenesis

12

Page 13: PSD to WordPress Theme

Download from

Unzip file & place inwp-content/themes/my-theme

Activate it at

Appearance > Themes

underscores.me

Starting withUnderscores

13

Page 14: PSD to WordPress Theme

All Done! Yay!

14

Page 15: PSD to WordPress Theme

Visit Site

15

Page 16: PSD to WordPress Theme

Functionality

16

Page 17: PSD to WordPress Theme

LogoMenuSliderWidgetsCustom FieldsCustomizer

PlanningWordPressIntegration

17

Page 18: PSD to WordPress Theme

What is our goal?What does the client need?

Who are our users?

18

Page 19: PSD to WordPress Theme

Use a named layer groupto organize elements

PSD Layers Groups

19

Page 20: PSD to WordPress Theme

Layout

20

Page 21: PSD to WordPress Theme

Layout ToolsBootstrapSusyBourbon Neat

Worth having a chat about!

21

Page 22: PSD to WordPress Theme

View > Show > Guides

Use a Grid

22

Page 23: PSD to WordPress Theme

PS Ruler ToolMeasure all the thingsfrom column widths topadding widths andbeyond

23

Page 24: PSD to WordPress Theme

Measuring Layout

24

Page 25: PSD to WordPress Theme

Measuring Layout

25

Page 26: PSD to WordPress Theme

Header

.site-header { max-width: 1170px; margin: 0 auto;}

26

Page 27: PSD to WordPress Theme

27

Page 28: PSD to WordPress Theme

AutomatedColumnsMarginsGutters

GuideGuidePS Plugin

guideguide.me

28

Page 29: PSD to WordPress Theme

Images

29

Page 30: PSD to WordPress Theme

SizesCustom WP image sizes

ImagesConsiderations

// in functions.php

if ( function_exists( 'add_image_size' ) ) { add_image_size( 'portfolio-thumb', 375, 375, true );}

Codex: add_image_size()

30

Page 31: PSD to WordPress Theme

Placing vs. EmbeddingEmbedding an imageinto a PSD makes PSDmore transportablePlacing an image allowsus to easily save it outfrom within Photoshop

ImagesConsiderations

31

Page 32: PSD to WordPress Theme

Typography

32

Page 33: PSD to WordPress Theme

Font FamilyFont SizesLine HeightParagraph Styles

Fonts Panel

33

Page 34: PSD to WordPress Theme

Enqueue Google FontsAdd font styles

Font Styles

34

Page 35: PSD to WordPress Theme

35

Page 36: PSD to WordPress Theme

// in functions.php

function psd_to_wp_theme_scripts() { // other code here - removed for brevity

wp_enqueue_script( 'psd-to-wp-theme-roboto', '//fonts.googleapis.com/css?family=Roboto:400,700,300' );}add_action( 'wp_enqueue_scripts', 'psd_to_wp_theme_scripts' );

Enqueue Roboto Google Font

/* in style.css

.main-navigation ul { font-family: "Roboto"; font-weight: 700; /* "Bold" in Photoshop */ font-size: 16px;}

Use it in CSS!

36

Page 37: PSD to WordPress Theme

37

Page 38: PSD to WordPress Theme

Colors

38

Page 39: PSD to WordPress Theme

Finding the Color

39

Page 40: PSD to WordPress Theme

Handy way to savecolor paletteEasily copy them toSASS variablesBeware usingeyedropper tool ontransparent colors

Color Swatches

40

Page 41: PSD to WordPress Theme

Other Cool Tools

41

Page 42: PSD to WordPress Theme

Take any website and turnit into a layered PSD file

Page Layers App

www.pagelayers.com

42

Page 43: PSD to WordPress Theme

Photoshop plugin whichinstantly turns layer stylesto CSS3!

CSS HAT

madebysource.com

43

Page 44: PSD to WordPress Theme

Finishing Touches

44

Page 45: PSD to WordPress Theme

themes/mytheme/screenshot.png1200x900px

Theme Screenshot

45

Page 47: PSD to WordPress Theme

Thank you!Questions?

Lauren Pittengerlaurenpittenger.com

@laurenpittenger

47