SlideShare a Scribd company logo
1 of 21
PSD to a
                        Drupal Theme
                              (using a base theme)




                                  Oliver Kuy
                                 web.kuydigital.com




PSD to a Drupal Theme (Base theme approach)
                 Oliver Kuy | web.kuydigital.com
What you need

    A working Drupal 7 Installation

    Fusion based theme (http://drupal.org/project/fusion)

    Adobe Photoshop website template (using 960grid - http://960.gs)

    Two browsers with one browser running Firebug

    FTP program (Filezilla, etc.)

    Text Editor (Notepad++, Text Wrangler, etc.)

    CSS knowledge & skills (sorry we really need to do some coding)
    
        For tutorials, go to http://www.w3schools.com/css/




                        PSD to a Drupal Theme (Base theme approach)
                                         Oliver Kuy | web.kuydigital.com
Step 1 – Drupal Installation

    Assuming that you already have a fresh or existing Drupal installation
    running locally on your computer or on a remote server. If not, you
    can refer to this page -
    http://drupal.org/documentation/install/beginners




                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
Step 2 – Download & Install a Base Theme

    For this tutorial, we will download the Fusion base theme -
    http://drupal.org/project/fusion

    Since the themes folder at the top level of Drupal is typically reserved
    for Drupal core themes, you should create a sites/all/themes/
    directory for contributed(non-core) themes and put uploaded themes
    there.




                        PSD to a Drupal Theme (Base theme approach)
                                         Oliver Kuy | web.kuydigital.com
Step 3 – Building your own Subtheme

    The Fusion Core base theme (parent theme) is designed to be easily
    extended by a subtheme (child theme). You shouldn't modify any of
    the CSS or PHP files in the fusion_core/ folder; but instead create a
    subtheme of Fusion.

                                Don't modify
                                anything
                                here!


                                  Question: Why shouldn't we modify
                                  any of the CSS or PHP files in the
                                  fusion_core/ folder?



                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
Step 3 – Building your own Subtheme

    Copy the fusion_starter folder and rename it to be your new
    subtheme. IMPORTANT: Only lowercase letters and underscores
    should be used for the name of your subtheme.

    For this tutorial, we'll name our subtheme “phdrug” and place it under
    sites/all/themes/




                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
Step 3 – Building your own Subtheme

    In your new subtheme folder, rename the .info file to include the
    name of your new subtheme. In this case, we rename it as
    “phdrug.info”




                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
Step 3 – Building your own Subtheme

     Then edit the phdrug.info file to update the name and description.

    Original .info contents                      New .info contents
name = Fusion Starter                            name = PHDRUG Theme
description = A fully featured Fusion            description = A Fusion subtheme
starter theme. Requires <a                       called PHDRUG. Requires <a
href="http://drupal.org/project/fusion">Fus      href="http://drupal.org/project/fusion">Fu
ion Core</a> and the <a                          sion Core</a> and the <a
href="http://drupal.org/project/fusion_acce      href="http://drupal.org/project/fusion_acc
lerator">Fusion Accelerator</a> suite to         elerator">Fusion Accelerator</a> suite to
enable easy point-and-click theming.             enable easy point-and-click theming.
base theme = fusion_core                         base theme = fusion_core
core = 7.x                                       core = 7.x
engine = phptemplate                             engine = phptemplate

stylesheets[all][] = css/fusion-starter-         stylesheets[all][] = css/phdrug-style.css
style.css




                              PSD to a Drupal Theme (Base theme approach)
                                               Oliver Kuy | web.kuydigital.com
Step 3 – Building your own Subtheme

    Rename the css file in the css/ folder to match.




                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
Step 4 – Enable your new Subtheme

    Next, visit your site's admin/appearance to set your new theme as the
    default.

    Visit your subtheme's settings page (click "Settings" next to it at
    admin/appearance) to configure basic options and layout.




                        PSD to a Drupal Theme (Base theme approach)
                                         Oliver Kuy | web.kuydigital.com
Fusion Theme Regions




 PSD to a Drupal Theme (Base theme approach)
                  Oliver Kuy | web.kuydigital.com
FURTHER READING

    Full documentation on using Fusion:
    http://fusiondrupalthemes.com/support/documentation



    Full documentation on creating a custom Fusion subtheme:
    http://fusiondrupalthemes.com/support/theme-developers



    Drupal theming documentation in the Theme Guide:
    http://drupal.org/theme-guide




                    PSD to a Drupal Theme (Base theme approach)
                                     Oliver Kuy | web.kuydigital.com
How to get rid of the Drupal Welcome Message


    Install Views (Drupal is nothing without it and we'll use it
    anyway) - http://drupal.org/project/views

    Install Ctools (since this is required by Views) -
    http://drupal.org/project/ctools

    Avoid any coding by using modules

    We are doing this to work on an empty canvas and have full
    control on all regions.
Note: We also need to turn off all blocks




                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
How to get rid of the Drupal Welcome Message


    Create a View – (Structures > Views > + Add a new view)



1


                 2                           1 – Create a page
                                             2 – type “node”
                                             3 – Click “Continue & edit

                                             Question: What is Drupal's
                                             “/node” path?
                3



                     PSD to a Drupal Theme (Base theme approach)
                                      Oliver Kuy | web.kuydigital.com
How to get rid of the Drupal Welcome Message


    Click “add” on
    CONTEXTUAL FILTERS

    Select “Global” in Filters

    Click on the checkbox
    “Global: Null”

    Click on the radio button
    “Display contents of "No
    results found"”

    Click “Apply (All)
    Displays”

    Click “Save”


                         PSD to a Drupal Theme (Base theme approach)
                                          Oliver Kuy | web.kuydigital.com
Prepare your Adobe Photoshop website template


    Assign possible regions for your website elements (see sample)

    Merge layers with effects

    Try to avoid using texts as an image (exception would be the logo)

    Think about flexibility on areas that need to be dynamic

    Make adjustments if needed to simplify

    Use CSS for solid colors, borders, rounded corners, shadows, etc.
    rather than images

    Use Views to display your Content Types (Blog, Story, Page, etc)
    Image & Imagecache modules (v.6) or Media and ImageMagick
    modules (v.7) to automate cropping and resizing of photos & images



                       PSD to a Drupal Theme (Base theme approach)
                                        Oliver Kuy | web.kuydigital.com
PSD to a Drupal Theme (Base theme approach)
                 Oliver Kuy | web.kuydigital.com
Fusion Theme Regions




 PSD to a Drupal Theme (Base theme approach)
                  Oliver Kuy | web.kuydigital.com
DEMO



  Place video here




PSD to a Drupal Theme (Base theme approach)
                 Oliver Kuy | web.kuydigital.com
PSD to Drupal Cycle




PSD to a Drupal Theme (Base theme approach)
                 Oliver Kuy | web.kuydigital.com
Thank You




                          PSD to a
                        Drupal Theme
                              (using a base theme)
PSD to a Drupal Theme (Base theme approach)
                 Oliver Kuy | web.kuydigital.com

More Related Content

What's hot

Introduction to Drupal (7) Theming
Introduction to Drupal (7) ThemingIntroduction to Drupal (7) Theming
Introduction to Drupal (7) ThemingRobert Carr
 
Theme guru's (Moodle 2 Edition)
Theme guru's (Moodle 2 Edition)Theme guru's (Moodle 2 Edition)
Theme guru's (Moodle 2 Edition)Julian Ridden
 
Drupal 7 Theme System
Drupal 7 Theme SystemDrupal 7 Theme System
Drupal 7 Theme SystemPeter Arato
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalRod Martin
 
Drupal 8 templating with twig
Drupal 8 templating with twigDrupal 8 templating with twig
Drupal 8 templating with twigTaras Omelianenko
 
Drupal 8: Theming
Drupal 8: ThemingDrupal 8: Theming
Drupal 8: Themingdrubb
 
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...Jim Birch
 
Drupal7 themeing changes and inheritence
Drupal7 themeing changes and inheritenceDrupal7 themeing changes and inheritence
Drupal7 themeing changes and inheritenceAimee Maree Forsstrom
 
One-hour Drupal 8 Theming
One-hour Drupal 8 ThemingOne-hour Drupal 8 Theming
One-hour Drupal 8 ThemingMediacurrent
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress ThemesLaura Hartwig
 
Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009Emma Jane Hogbin Westby
 
Bootstrap Framework and Drupal
Bootstrap Framework and DrupalBootstrap Framework and Drupal
Bootstrap Framework and DrupalJim Birch
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themesGeshan Manandhar
 
DrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme DevelopmentDrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme Developmentultimike
 
Drupal Themes
Drupal ThemesDrupal Themes
Drupal Themesakosh
 
Build a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikBuild a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikMario Peshev
 

What's hot (19)

A look at Drupal 7 Theming
A look at Drupal 7 ThemingA look at Drupal 7 Theming
A look at Drupal 7 Theming
 
Introduction to Drupal (7) Theming
Introduction to Drupal (7) ThemingIntroduction to Drupal (7) Theming
Introduction to Drupal (7) Theming
 
Theme guru's (Moodle 2 Edition)
Theme guru's (Moodle 2 Edition)Theme guru's (Moodle 2 Edition)
Theme guru's (Moodle 2 Edition)
 
Drupal 7 Theme System
Drupal 7 Theme SystemDrupal 7 Theme System
Drupal 7 Theme System
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to Drupal
 
Design to Theme @ CMSExpo
Design to Theme @ CMSExpoDesign to Theme @ CMSExpo
Design to Theme @ CMSExpo
 
Drupal 8 templating with twig
Drupal 8 templating with twigDrupal 8 templating with twig
Drupal 8 templating with twig
 
Drupal 8: Theming
Drupal 8: ThemingDrupal 8: Theming
Drupal 8: Theming
 
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
 
Drupal7 themeing changes and inheritence
Drupal7 themeing changes and inheritenceDrupal7 themeing changes and inheritence
Drupal7 themeing changes and inheritence
 
Drupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating ModulesDrupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating Modules
 
One-hour Drupal 8 Theming
One-hour Drupal 8 ThemingOne-hour Drupal 8 Theming
One-hour Drupal 8 Theming
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009
 
Bootstrap Framework and Drupal
Bootstrap Framework and DrupalBootstrap Framework and Drupal
Bootstrap Framework and Drupal
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themes
 
DrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme DevelopmentDrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme Development
 
Drupal Themes
Drupal ThemesDrupal Themes
Drupal Themes
 
Build a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ TelerikBuild a WordPress theme from HTML5 template @ Telerik
Build a WordPress theme from HTML5 template @ Telerik
 

Viewers also liked

Converting Static Html To Drupal Theme
Converting Static Html To Drupal ThemeConverting Static Html To Drupal Theme
Converting Static Html To Drupal ThemeRyan Cross
 
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)Four Kitchens
 
From PSD to Drupal Theme
From PSD to Drupal ThemeFrom PSD to Drupal Theme
From PSD to Drupal ThemeAcquia
 
Theme Kickstart
Theme KickstartTheme Kickstart
Theme KickstartPeter
 
UX design for every screen
UX design for every screenUX design for every screen
UX design for every screenFour Kitchens
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeSuzanne Dergacheva
 
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming HeadachesSrijan Technologies
 
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinCreating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinSuzanne Dergacheva
 
Connected Health Reference Architecture
Connected Health Reference ArchitectureConnected Health Reference Architecture
Connected Health Reference ArchitectureWSO2
 
A Reference Architecture for ETL 2.0
A Reference Architecture for ETL 2.0 A Reference Architecture for ETL 2.0
A Reference Architecture for ETL 2.0 DataWorks Summit
 
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop Professionals
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop ProfessionalsBest Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop Professionals
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop ProfessionalsCloudera, Inc.
 

Viewers also liked (14)

Converting Static Html To Drupal Theme
Converting Static Html To Drupal ThemeConverting Static Html To Drupal Theme
Converting Static Html To Drupal Theme
 
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)
From Photoshop to Drupal Theme (DrupalCon San Francisco 2010)
 
From PSD to Drupal Theme
From PSD to Drupal ThemeFrom PSD to Drupal Theme
From PSD to Drupal Theme
 
Theme Kickstart
Theme KickstartTheme Kickstart
Theme Kickstart
 
UX design for every screen
UX design for every screenUX design for every screen
UX design for every screen
 
A Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 MinutesA Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 Minutes
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
 
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches
[Srijan Wednesday Webinars] Drupal 8: Goodbye to 10 Years of Theming Headaches
 
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinCreating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
 
Connected Health Reference Architecture
Connected Health Reference ArchitectureConnected Health Reference Architecture
Connected Health Reference Architecture
 
A Reference Architecture for ETL 2.0
A Reference Architecture for ETL 2.0 A Reference Architecture for ETL 2.0
A Reference Architecture for ETL 2.0
 
What is personal connected health?
What is personal connected health?What is personal connected health?
What is personal connected health?
 
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop Professionals
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop ProfessionalsBest Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop Professionals
Best Practices for the Hadoop Data Warehouse: EDW 101 for Hadoop Professionals
 
Atomic design
Atomic designAtomic design
Atomic design
 

Similar to PSD to a Drupal Theme (using a base theme)

Introduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechIntroduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechMandakini Kumari
 
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Ben Shell
 
Drupal Now! - Introduction to Drupal
Drupal Now! - Introduction to DrupalDrupal Now! - Introduction to Drupal
Drupal Now! - Introduction to DrupalAlozie Nwosu
 
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal DrupalMumbai
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1phpfactory
 
Drupal theming 101
Drupal theming 101Drupal theming 101
Drupal theming 101Exove
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsMicky Metts
 
Drupal Themes & Nucleus
Drupal Themes & NucleusDrupal Themes & Nucleus
Drupal Themes & NucleusThemeBrain
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practicesmeghsweet
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance TipsTrevor James
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Joe Querin
 
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
 
Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Phase2
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation Micky Metts
 
VLE Development Day - Moodle:Beyond the Basics
VLE Development Day - Moodle:Beyond the BasicsVLE Development Day - Moodle:Beyond the Basics
VLE Development Day - Moodle:Beyond the BasicsChris Hebbes
 
Form Follows File
Form Follows FileForm Follows File
Form Follows FileAdub
 

Similar to PSD to a Drupal Theme (using a base theme) (20)

Introduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechIntroduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotech
 
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
 
Drupal Now! - Introduction to Drupal
Drupal Now! - Introduction to DrupalDrupal Now! - Introduction to Drupal
Drupal Now! - Introduction to Drupal
 
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1
 
Drupal theming 101
Drupal theming 101Drupal theming 101
Drupal theming 101
 
I &lt;3 Drupal
I &lt;3 DrupalI &lt;3 Drupal
I &lt;3 Drupal
 
I Heart Drupal
I Heart DrupalI Heart Drupal
I Heart Drupal
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
Drupal Themes & Nucleus
Drupal Themes & NucleusDrupal Themes & Nucleus
Drupal Themes & Nucleus
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practices
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance Tips
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
 
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
 
Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
 
Hands On Drupal: Funny Name, Serious CMS
Hands On Drupal: Funny Name, Serious CMSHands On Drupal: Funny Name, Serious CMS
Hands On Drupal: Funny Name, Serious CMS
 
Hands On Drupal - SchipulCon 09
Hands On Drupal - SchipulCon 09Hands On Drupal - SchipulCon 09
Hands On Drupal - SchipulCon 09
 
VLE Development Day - Moodle:Beyond the Basics
VLE Development Day - Moodle:Beyond the BasicsVLE Development Day - Moodle:Beyond the Basics
VLE Development Day - Moodle:Beyond the Basics
 
Form Follows File
Form Follows FileForm Follows File
Form Follows File
 

PSD to a Drupal Theme (using a base theme)

  • 1. PSD to a Drupal Theme (using a base theme) Oliver Kuy web.kuydigital.com PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 2. What you need  A working Drupal 7 Installation  Fusion based theme (http://drupal.org/project/fusion)  Adobe Photoshop website template (using 960grid - http://960.gs)  Two browsers with one browser running Firebug  FTP program (Filezilla, etc.)  Text Editor (Notepad++, Text Wrangler, etc.)  CSS knowledge & skills (sorry we really need to do some coding)  For tutorials, go to http://www.w3schools.com/css/ PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 3. Step 1 – Drupal Installation  Assuming that you already have a fresh or existing Drupal installation running locally on your computer or on a remote server. If not, you can refer to this page - http://drupal.org/documentation/install/beginners PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 4. Step 2 – Download & Install a Base Theme  For this tutorial, we will download the Fusion base theme - http://drupal.org/project/fusion  Since the themes folder at the top level of Drupal is typically reserved for Drupal core themes, you should create a sites/all/themes/ directory for contributed(non-core) themes and put uploaded themes there. PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 5. Step 3 – Building your own Subtheme  The Fusion Core base theme (parent theme) is designed to be easily extended by a subtheme (child theme). You shouldn't modify any of the CSS or PHP files in the fusion_core/ folder; but instead create a subtheme of Fusion. Don't modify anything here! Question: Why shouldn't we modify any of the CSS or PHP files in the fusion_core/ folder? PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 6. Step 3 – Building your own Subtheme  Copy the fusion_starter folder and rename it to be your new subtheme. IMPORTANT: Only lowercase letters and underscores should be used for the name of your subtheme.  For this tutorial, we'll name our subtheme “phdrug” and place it under sites/all/themes/ PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 7. Step 3 – Building your own Subtheme  In your new subtheme folder, rename the .info file to include the name of your new subtheme. In this case, we rename it as “phdrug.info” PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 8. Step 3 – Building your own Subtheme  Then edit the phdrug.info file to update the name and description. Original .info contents New .info contents name = Fusion Starter name = PHDRUG Theme description = A fully featured Fusion description = A Fusion subtheme starter theme. Requires <a called PHDRUG. Requires <a href="http://drupal.org/project/fusion">Fus href="http://drupal.org/project/fusion">Fu ion Core</a> and the <a sion Core</a> and the <a href="http://drupal.org/project/fusion_acce href="http://drupal.org/project/fusion_acc lerator">Fusion Accelerator</a> suite to elerator">Fusion Accelerator</a> suite to enable easy point-and-click theming. enable easy point-and-click theming. base theme = fusion_core base theme = fusion_core core = 7.x core = 7.x engine = phptemplate engine = phptemplate stylesheets[all][] = css/fusion-starter- stylesheets[all][] = css/phdrug-style.css style.css PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 9. Step 3 – Building your own Subtheme  Rename the css file in the css/ folder to match. PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 10. Step 4 – Enable your new Subtheme  Next, visit your site's admin/appearance to set your new theme as the default.  Visit your subtheme's settings page (click "Settings" next to it at admin/appearance) to configure basic options and layout. PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 11. Fusion Theme Regions PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 12. FURTHER READING  Full documentation on using Fusion: http://fusiondrupalthemes.com/support/documentation  Full documentation on creating a custom Fusion subtheme: http://fusiondrupalthemes.com/support/theme-developers  Drupal theming documentation in the Theme Guide: http://drupal.org/theme-guide PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 13. How to get rid of the Drupal Welcome Message  Install Views (Drupal is nothing without it and we'll use it anyway) - http://drupal.org/project/views  Install Ctools (since this is required by Views) - http://drupal.org/project/ctools  Avoid any coding by using modules  We are doing this to work on an empty canvas and have full control on all regions. Note: We also need to turn off all blocks PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 14. How to get rid of the Drupal Welcome Message  Create a View – (Structures > Views > + Add a new view) 1 2 1 – Create a page 2 – type “node” 3 – Click “Continue & edit Question: What is Drupal's “/node” path? 3 PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 15. How to get rid of the Drupal Welcome Message  Click “add” on CONTEXTUAL FILTERS  Select “Global” in Filters  Click on the checkbox “Global: Null”  Click on the radio button “Display contents of "No results found"”  Click “Apply (All) Displays”  Click “Save” PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 16. Prepare your Adobe Photoshop website template  Assign possible regions for your website elements (see sample)  Merge layers with effects  Try to avoid using texts as an image (exception would be the logo)  Think about flexibility on areas that need to be dynamic  Make adjustments if needed to simplify  Use CSS for solid colors, borders, rounded corners, shadows, etc. rather than images  Use Views to display your Content Types (Blog, Story, Page, etc) Image & Imagecache modules (v.6) or Media and ImageMagick modules (v.7) to automate cropping and resizing of photos & images PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 17. PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 18. Fusion Theme Regions PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 19. DEMO Place video here PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 20. PSD to Drupal Cycle PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com
  • 21. Thank You PSD to a Drupal Theme (using a base theme) PSD to a Drupal Theme (Base theme approach) Oliver Kuy | web.kuydigital.com