25
Turning your design into a WordPress Theme Adam Darowski BatchBlue Software, LLC NewBCamp 2.8.09

NewBCamp09: Turning your design into a WordPress Theme

Embed Size (px)

DESCRIPTION

At NewBCamp '09, I live-built the front page of a WordPress theme. Here are the slides I used before building to explain the parts of a WordPress theme.

Citation preview

Page 1: NewBCamp09: Turning your design into a WordPress Theme

Turning your design into a WordPress Theme

Adam DarowskiBatchBlue Software, LLC

NewBCamp 2.8.09

Page 2: NewBCamp09: Turning your design into a WordPress Theme

What is WordPress?

• Open source publishing platform

• Two “versions”:

- WordPress.com

- WordPress.org

• Other publishing platforms:- Drupal, TypePad, Movable Type, Expression Engine, and many,

many more.

2

Page 3: NewBCamp09: Turning your design into a WordPress Theme

What is a WordPress Theme?

3

WordPress CodeThe inner workings that you don’t

want to touch.

ThemesChange how it looks.

PluginsChange how it acts.

Page 4: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

• PHP files

- Grabs info from database to make HTML.

• CSS styles

- Defines how that HTML should look.

• Images

- For the template only

4

Page 5: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

5

Tabigail Themehttp://tabigail.com

Page 6: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

6

Page 7: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

7

header.php

Page 8: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

8

header.php

footer.php

Page 9: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

9

header.php

footer.php

sid

ebar

.ph

p

Page 10: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

10

header.php

footer.php

sid

ebar

.ph

p

index.php(Home Page)

Page 11: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

11

header.php

footer.php

sid

ebar

.ph

psingle.php(Single Post)

comments.php(Comments)

Page 12: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

12

header.php

footer.php

sid

ebar

.ph

ppage.php(Static Page)

comments.php(Comments)

Page 13: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

13

header.php

footer.php

sid

ebar

.ph

p

archive.php(Archive Pages)

Page 14: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

14

header.php

footer.php

sid

ebar

.ph

p

search.php(Search Results)

Page 15: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

15

header.php

footer.php

sid

ebar

.ph

p

404.php(Page Not Found)

Page 16: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

16

header.php

footer.php

sid

ebar

.ph

p

Page 17: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

17

Page 18: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

18

Page 19: NewBCamp09: Turning your design into a WordPress Theme

What is a theme made of?

19

Page 20: NewBCamp09: Turning your design into a WordPress Theme

Hooking it up

• Header logo

<h1><a href="http://www.darowski.com/tracesofinspiration" title="Traces of Inspiration">Traces of Inspiration</a></h1>

20

Page 21: NewBCamp09: Turning your design into a WordPress Theme

Hooking it up

• Header logo

<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

21

Page 22: NewBCamp09: Turning your design into a WordPress Theme

Hooking it up

• Header logo

<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

22

Page 23: NewBCamp09: Turning your design into a WordPress Theme

Hooking it up

• Header logo

<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

23

Page 24: NewBCamp09: Turning your design into a WordPress Theme

Now, let’s play!

24