44
From a Fireworks Comp to a Genesis Child Theme Linda Shum & Sallie Goetsch 7/24/11

From a Fireworks Comp to a Genesis Child Theme, Step by Step

Embed Size (px)

Citation preview

Page 1: From a Fireworks Comp to a Genesis Child Theme, Step by Step

From a Fireworks Compto a Genesis Child Theme

Linda Shum & Sallie Goetsch

7/24/11

Page 2: From a Fireworks Comp to a Genesis Child Theme, Step by Step

What’s Fireworks?

Page 3: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Why Some People Like Fireworks Better Than Photoshop

• Multiple Pages

• Symbols

• Styles

• Vector Objects

• Libraries

• Grouping

• Interactive Gradients

• Web Layers

• Slice-Scaling

• Easy to Learn

http://boagworld.com/design/fireworks-vs-photoshop/

Page 4: From a Fireworks Comp to a Genesis Child Theme, Step by Step

What’s Genesis?

Page 5: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Why Genesis?

• Genesis is Search Engine Optimized

• Genesis Offers Great-Looking Turn-key Designs

• Genesis Gives You Unlimited Everything

• Genesis Gives You State-of-the-Art Security

• Genesis Lets You Update Your Site Instantly

• Genesis Makes Customizing Your Site Incredibly Easy

• Genesis has Custom Widgets and Layout Options

Page 6: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Theme Options

Page 7: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Custom Widgets

Page 8: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Original Design

Page 9: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Challenges With This Design

• Header and Footer Menus

• Graphite outlines around boxes

• Asymmetric drop shadows behind boxes

• Tabbed slider with rotating images

• Exact spacing

Page 10: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Pillaging Child Themes

Page 11: From a Fireworks Comp to a Genesis Child Theme, Step by Step

What Came from Where

• Top and Bottom menus from News Theme

• Main menu from Mocha Theme

• Tabbed slider from Venture Theme

• Four-widget home page layout from Executive Theme

• Large widgeted footer from Platinum Theme

Page 12: From a Fireworks Comp to a Genesis Child Theme, Step by Step

News Theme Header Menu

Page 13: From a Fireworks Comp to a Genesis Child Theme, Step by Step

News Theme Header Menu Code

Don’t ask ME what this is doing in functions.php. I didn’t write it that way.

Page 14: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Mocha Menu

Page 15: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Venture Theme Slider

Page 16: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Executive Theme Widgets

Page 17: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Platinum Theme Footer

Page 18: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Contents of Theme Folder

Page 19: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Theme Images Folder

Page 20: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Theme Lib Folder

Page 21: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Style.css (Key to a Child Theme)

Page 22: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Functions.php

Page 23: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Registering Widgets

Remember this: we’re going to need to make some changes here.

Page 24: From a Fireworks Comp to a Genesis Child Theme, Step by Step

THE ORIGINAL HOME PAGE

Page 25: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Home.php: Tabbed Slider

Page 26: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Home.php Top Right

Page 27: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Home.php Mission Statement

Page 28: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Home.php Middle Right

Page 29: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Home.php Bottom

Add three more just like this. Note the box classes for the backgrounds. We’re going to have to change those, too.

Page 30: From a Fireworks Comp to a Genesis Child Theme, Step by Step

End of Home.php

Page 31: From a Fireworks Comp to a Genesis Child Theme, Step by Step

SO WHAT’S UP WITH THESE WIDGETS?

Page 32: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Close-Up of Widget Design

Page 33: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Widget Sliced for Site

Page 34: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Test CSS for Widgets/* JUST SOMETHING TO HOLD THE BOX TOGETHER IN A FLOATING AREA */

.box-area {

float: left;

margin: 0 15px 0 0;

}

/* THE ACTUAL BOX, HEAD ON TOP, BOX WITH BACKGROUND, AND A BOTTOM */

.box-header-blue {

background: #FFFFFF url(box-head-blue.png) no-repeat;

width: 235px;

height: 45px;

color: #FFFFFF;

}

.box {

background: #FFFFFF url(box-back.png) no-repeat;

background-position: bottom right;

width: 235px;

}

.box-bottom {

background: #FFFFFF url(box-bottom.png) no-repeat;

width: 235px;

}

Page 35: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Test HTML for Widgets<div class="box-area">

<div class="box-header-blue"><div class="head-text">BOX HEADER TEXT</div></div>

<div class="box"><div class="content">

The box and its contents.<br><br>

And another line of text.<br>And some more.<br>Just to fill things up a

bit.<br><br>And something to end with.

</div></div><div class="box-bottom">&nbsp;</div>

</div>

Page 36: From a Fireworks Comp to a Genesis Child Theme, Step by Step

What This Looks Like

Page 37: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Original Genesis Widget Code<div id="home-bottom-bg"><div id="home-bottom">

<div class="home-bottom-1"><?php if (!dynamic_sidebar('Home Bottom #1')) : ?>

<div class="widget">

<h4><?php _e("Home Bottom #1 Widget", 'genesis'); ?></h4>

<p><?php _e("This is a widgeted area which is called Home Bottom #1. It is using the Genesis - Featured Post widget to display what you see on the Executive child theme demo site. To get started, log into your WordPress dashboard, and then go to the Appearance > Widgets screen. There you can drag the Genesis - Featured Post widget into the Home Bottom #1 widget area on the right hand side. To get the image to display, simply upload an image through the media uploader on the edit post screen and publish your post. The Featured Post widget will know to display the post image as long as you select that option in the widget interface.", 'genesis'); ?></p>

</div><?php endif; ?></div><!-- end .home-bottom-1 -->

Page 38: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Translating CSS Test to Genesis

This looked great at first. Who can see the problem with this solution?

Page 39: From a Fireworks Comp to a Genesis Child Theme, Step by Step

So Where Can We Put the CSS?

In the functions.php file

Page 40: From a Fireworks Comp to a Genesis Child Theme, Step by Step

The Final Home Page

Look, Ma! No Tabs.

Page 41: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Final Home Page, 2

Page 42: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Locations Page

Page 43: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Success Stories

Page 44: From a Fireworks Comp to a Genesis Child Theme, Step by Step

Where to Find Us

Sallie Goetsch

wpfangirl.comLinda Shum

shumdesign.com