SlideShare ist ein Scribd-Unternehmen logo
1 von 68
From PSD to WordPress Theme:
      Bringing designs to life

        Derek Christensen
(name)


(email)   derek@derekchristensen.com
                               (website)

             media-spine.com

             @derekdac

             quora.com/Derek-Christensen

             github.com/derekdac
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
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
slicing
•   identify the elements
•   transparent background
•   slice
•   save for web and devices
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
layer-based slicing
• faster
• flatten and combine layers
• less control
building your own theme
starter/base themes
•   skeleton
•   bones
•   starkers
•   roots
•   hybrid
•   thesis
•   genesis
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
********************************************************/
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
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 */
 }
footer {
     background-color:#394253;
     height:185px;
     margin-top:0;
     border-top:0;
     padding: 0 0 0 0;
}
#content {
     width: 960px;
     margin: 0 auto;
     padding: 0;
}
body:before {
  display: block;
  height: 0px;
  content: url(background_cloud.png);
  float: right;
}

:before selector inserts content before the content of that element
#slideshow {
       background-image: url(background_skyline.png);
       background-position: right bottom;
       background-repeat: no-repeat;
}
<div id="content" class="clearfix">
       <div id="slideshow" class="clearfix">
              <div id="iphone" class="clearfix">
              </div> <!-- end #iphone -->
              <div id="text" class="clearfix">
              </div><!-- end #text -->
              <div id="download" class="clearfix">
              </div> <!-- end #download -->
       </div> <!-- end #slideshow -->
</div> <!-- end #content -->
#iphone{
      height: 575px;
      width: 300px;
      background-image: url(iphone4frame.png);
      background-repeat: no-repeat;
      float: left;
}
#text {
   background: transparent;
   height: 250px;
   width: 620px;
   color: #394253;
   font-family: Arial, Helvetica, Verdana;
   font-size: 14pt;
   text-decoration: none;
float:right;
}
#download{
     background-image: url(download.png);
     background-repeat: no-repeat;
     height:135px;
}
@font-face {
    font-family: SerifBD;
    src: url('serifbd.ttf');
}
h1, .h1, h2, .h2, h3, .h3 {
          font-family: SerifBD, Arial, Helvetica, Verdana;
          color: #394253;
}
h2, .h2 {
          margin: 0 0 7px 0;
}
h3, .h3 {
          margin: 0 0 7px 0;
          font-size: 14pt
 }
h1 a, h2 a, h3 a {
          font-family: SerifBD, Arial, Helvetica, Verdana;
          color: #394253;
}
nav[role=navigation] {}
nav[role=navigation] .menu ul {
           background: transparent;
           padding-top: 32px;
}
nav[role=navigation] .menu ul li {}
nav[role=navigation] .menu ul li a {
           color: #394253;
           display: block;
           padding: 10px 20px;
           font-family: SerifBD, Arial, Helvetica, Verdana;
           font-size: 14pt;
}
nav[role=navigation] .menu ul li a:hover {
           background: #fff;
           -moz-border-radius: 17px;
           -webkit-border-radius: 17px;
           border-radius: 17px;
}
nav[role=navigation] .menu ul li.current-menu-item a, .nav ul li.current_page_item a {
           background: #fff;
           -moz-border-radius: 17px;
           -webkit-border-radius: 17px;
           border-radius: 17px;
}
<body <?php body_class(); ?>>
 <div id="container">
  <header role="banner">
   <div id="inner-header" class="clearfix">
    <nav role="navigation" class="clearfix">
     <?php bones_main_nav();?>
    </nav>
   </div> <!-- end #inner-header -->
  </header> <!-- end header -->
header[role=banner] {
    position: relative;
    width: 960px;
    margin: 0 auto;
    padding: 0;
}
#navigation{
     width: 620px;
     float: right;
}
<p id="logo">
 <a href="<?php echo home_url(); ?>" rel="nofollow">
  <img src="wp-content/themes/whim/WhimLogo.png" />
 </a>
</p>
#logo{
     width: 340px;
     margin-bottom:0px;
     float:left;
}
http://whimapp.com
tools
•   e-text editor (Like textmate, but for windows)
•   XAMPP
•   adobe photoshop (or gimp)
•   adobe illustrator (or inkscape)
•   firebug for firefox
web resources
•   http://slideshare.net/derekdac/
•   http://css3please.com/
•   http://css-tricks.com/
•   http://nettuts.com/
•   http://stackexchange.com/
•   http://fontsquirrel.com/
•   http://yoast.com/wordpress-theme-anatomy/
questions?

                              (name)


(email)   derek@derekchristensen.com
                                 (website)




           http://slideshare.net/derekdac/

Weitere ähnliche Inhalte

Was ist angesagt?

CSS in React
CSS in ReactCSS in React
CSS in ReactJoe Seifi
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Todd Zaki Warfel
 
Drupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with ZenDrupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with ZenJapo Domingo
 
Wcphx 2012-workshop
Wcphx 2012-workshopWcphx 2012-workshop
Wcphx 2012-workshopPtah Dunbar
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyJoe Seifi
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) ThemingPINGV
 
WordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkWordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkPtah Dunbar
 
How to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseHow to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseDavid Yeiser
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. The University of Akron
 
Intro to Web Development
Intro to Web DevelopmentIntro to Web Development
Intro to Web DevelopmentFrank Wu
 
WordPress Theme Structure
WordPress Theme StructureWordPress Theme Structure
WordPress Theme Structurekeithdevon
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 MinutesPatrick Crowley
 
Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013Andrea Tarr
 
How to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoHow to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoSuzette Franck
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersSuzette Franck
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentEstelle Weyl
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
Theme like a monster #ddceu
Theme like a monster #ddceuTheme like a monster #ddceu
Theme like a monster #ddceuMarek Sotak
 

Was ist angesagt? (20)

CSS in React
CSS in ReactCSS in React
CSS in React
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
 
Drupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with ZenDrupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with Zen
 
Wcphx 2012-workshop
Wcphx 2012-workshopWcphx 2012-workshop
Wcphx 2012-workshop
 
CSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The UglyCSS in React - The Good, The Bad, and The Ugly
CSS in React - The Good, The Bad, and The Ugly
 
Sass
SassSass
Sass
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
 
WordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkWordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP Framework
 
How to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseHow to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public Release
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors.
 
Intro to Web Development
Intro to Web DevelopmentIntro to Web Development
Intro to Web Development
 
WordPress Theme Structure
WordPress Theme StructureWordPress Theme Structure
WordPress Theme Structure
 
LESS
LESSLESS
LESS
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 Minutes
 
Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013Using LESS, the CSS Preprocessor: J and Beyond 2013
Using LESS, the CSS Preprocessor: J and Beyond 2013
 
How to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoHow to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - Sacramento
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress Developers
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Theme like a monster #ddceu
Theme like a monster #ddceuTheme like a monster #ddceu
Theme like a monster #ddceu
 

Ähnlich wie From PSD to WordPress Theme: Bringing designs to life

Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid PrototypingEven Wu
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingMyles Braithwaite
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?Denise Jacobs
 
Web-03-CSS.ppt
Web-03-CSS.pptWeb-03-CSS.ppt
Web-03-CSS.pptjoeveller
 
It's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrIt's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrMichael Enslow
 
LeSS in action
LeSS in actionLeSS in action
LeSS in actionPu Shiming
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebEduardo Shiota Yasuda
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptraghavanp4
 
LESS is More
LESS is MoreLESS is More
LESS is Morejsmith92
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandThemePartner
 

Ähnlich wie From PSD to WordPress Theme: Bringing designs to life (20)

Death of a Themer
Death of a ThemerDeath of a Themer
Death of a Themer
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG Meeting
 
Word Press As A Cms
Word Press As A CmsWord Press As A Cms
Word Press As A Cms
 
Sass compass
Sass compassSass compass
Sass compass
 
Core CSS3
Core CSS3Core CSS3
Core CSS3
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?
 
Web-03-CSS.ppt
Web-03-CSS.pptWeb-03-CSS.ppt
Web-03-CSS.ppt
 
Css
CssCss
Css
 
CSS3
CSS3CSS3
CSS3
 
The Future of CSS
The Future of CSSThe Future of CSS
The Future of CSS
 
It's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking ModernizrIt's a Mod World - A Practical Guide to Rocking Modernizr
It's a Mod World - A Practical Guide to Rocking Modernizr
 
LeSS in action
LeSS in actionLeSS in action
LeSS in action
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
Team styles
Team stylesTeam styles
Team styles
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
LESS is More
LESS is MoreLESS is More
LESS is More
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day Deutschland
 

Kürzlich hochgeladen

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Kürzlich hochgeladen (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

From PSD to WordPress Theme: Bringing designs to life

  • 1. From PSD to WordPress Theme: Bringing designs to life Derek Christensen
  • 2. (name) (email) derek@derekchristensen.com (website) media-spine.com @derekdac quora.com/Derek-Christensen github.com/derekdac
  • 3.
  • 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
  • 10. layer-based slicing • faster • flatten and combine layers • less control
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 23. starter/base themes • skeleton • bones • starkers • roots • hybrid • thesis • genesis
  • 24.
  • 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 */ }
  • 32.
  • 33. footer { background-color:#394253; height:185px; margin-top:0; border-top:0; padding: 0 0 0 0; }
  • 34.
  • 35.
  • 36.
  • 37. #content { width: 960px; margin: 0 auto; padding: 0; }
  • 38.
  • 39. body:before { display: block; height: 0px; content: url(background_cloud.png); float: right; } :before selector inserts content before the content of that element
  • 40.
  • 41. #slideshow { background-image: url(background_skyline.png); background-position: right bottom; background-repeat: no-repeat; }
  • 42.
  • 43. <div id="content" class="clearfix"> <div id="slideshow" class="clearfix"> <div id="iphone" class="clearfix"> </div> <!-- end #iphone --> <div id="text" class="clearfix"> </div><!-- end #text --> <div id="download" class="clearfix"> </div> <!-- end #download --> </div> <!-- end #slideshow --> </div> <!-- end #content -->
  • 44. #iphone{ height: 575px; width: 300px; background-image: url(iphone4frame.png); background-repeat: no-repeat; float: left; }
  • 45.
  • 46. #text { background: transparent; height: 250px; width: 620px; color: #394253; font-family: Arial, Helvetica, Verdana; font-size: 14pt; text-decoration: none; float:right; }
  • 47.
  • 48. #download{ background-image: url(download.png); background-repeat: no-repeat; height:135px; }
  • 49.
  • 50. @font-face { font-family: SerifBD; src: url('serifbd.ttf'); }
  • 51. h1, .h1, h2, .h2, h3, .h3 { font-family: SerifBD, Arial, Helvetica, Verdana; color: #394253; } h2, .h2 { margin: 0 0 7px 0; } h3, .h3 { margin: 0 0 7px 0; font-size: 14pt } h1 a, h2 a, h3 a { font-family: SerifBD, Arial, Helvetica, Verdana; color: #394253; }
  • 52.
  • 53. nav[role=navigation] {} nav[role=navigation] .menu ul { background: transparent; padding-top: 32px; } nav[role=navigation] .menu ul li {} nav[role=navigation] .menu ul li a { color: #394253; display: block; padding: 10px 20px; font-family: SerifBD, Arial, Helvetica, Verdana; font-size: 14pt; } nav[role=navigation] .menu ul li a:hover { background: #fff; -moz-border-radius: 17px; -webkit-border-radius: 17px; border-radius: 17px; } nav[role=navigation] .menu ul li.current-menu-item a, .nav ul li.current_page_item a { background: #fff; -moz-border-radius: 17px; -webkit-border-radius: 17px; border-radius: 17px; }
  • 54.
  • 55.
  • 56. <body <?php body_class(); ?>> <div id="container"> <header role="banner"> <div id="inner-header" class="clearfix"> <nav role="navigation" class="clearfix"> <?php bones_main_nav();?> </nav> </div> <!-- end #inner-header --> </header> <!-- end header -->
  • 57. header[role=banner] { position: relative; width: 960px; margin: 0 auto; padding: 0; }
  • 58.
  • 59. #navigation{ width: 620px; float: right; }
  • 60. <p id="logo"> <a href="<?php echo home_url(); ?>" rel="nofollow"> <img src="wp-content/themes/whim/WhimLogo.png" /> </a> </p>
  • 61. #logo{ width: 340px; margin-bottom:0px; float:left; }
  • 62.
  • 63.
  • 64.
  • 66. tools • e-text editor (Like textmate, but for windows) • XAMPP • adobe photoshop (or gimp) • adobe illustrator (or inkscape) • firebug for firefox
  • 67. web resources • http://slideshare.net/derekdac/ • http://css3please.com/ • http://css-tricks.com/ • http://nettuts.com/ • http://stackexchange.com/ • http://fontsquirrel.com/ • http://yoast.com/wordpress-theme-anatomy/
  • 68. questions? (name) (email) derek@derekchristensen.com (website) http://slideshare.net/derekdac/