This document discusses bringing designs created in Photoshop or other design programs to life as WordPress themes. It covers considerations when slicing designs, using starter themes, building child themes, and inserting CSS. Tips are provided on focusing on high impact elements first, understanding the parent theme structure, and using tools like Firebug to debug designs. Resources for learning more about web development and WordPress theme building are also listed.
4. designer v developer
• most designers are not developers. there are
things that look good on a poster that don't work
well on a website
• walk before you run – as you start out, don’t try
to be too unique
• if you’re a designer, sit with a developer for a few
days to learn some of the constraints that exist
• if you’re a developer, sit with a designer for a few
days to learn some of the elements of good
design
5.
6. considerations
• overlapping design elements
• custom font
• clouds cut in half
• category icons in two colors
• background texture overlay
• only front page design provided
• not sliced
7.
8. slicing
• identify the elements
• transparent background
• slice
• save for web and devices
9. things to remember
• you don’t have to slice everything at once
• don’t slice text unless you really need to
– use CSS3 @font-face instead
– don’t use images for words in menus
• CSS sprites
• multiple use of the same image - slice
once, reuse
25. child theme
/********************************************************
Theme Name: Whim
Theme URI: http://whimapp.com
Description: A custom theme for Whim based on the Bones starter
theme
Author: Derek Christensen
Author URI: http://www.media-spine.com
Version: 1.0
Tags: html5, framework, css3, development
Template: bones
********************************************************/
26.
27.
28.
29.
30. start building
• low-hanging fruit
• hundreds of right ways to do it – the perfect is
the enemy of the good
• study and understand the structure of your
parent theme
31. body {
/* Fallback if browser cannot support CSS3 gradients */
background-color: #abc5df;
background-image: url("background_tall.jpg") ;
background-position: top;
background-repeat: repeat-x fixed;
background: -webkit-gradient(radial, center center, 0, center
center, 460, from(#fff), to(#abc5df)); /* Safari 4-5, Chrome 1-9 */
background: -webkit-radial-gradient(circle, #fff, #abc5df); /* Safari
5.1+, Chrome 10+ */
background: -moz-radial-gradient(circle, #fff, #abc5df); /* Firefox 3.6+ */
background: -ms-radial-gradient(circle, #fff, #abc5df); /* IE 10 */
}
39. body:before {
display: block;
height: 0px;
content: url(background_cloud.png);
float: right;
}
:before selector inserts content before the content of that element