SlideShare ist ein Scribd-Unternehmen logo
1 von 57
THEMINGWITH ZEN
Japo Domingo
Drupal Developer
Drupal.org id: japo32
WHAT’S HAPPENING NOW
Who am I?
Why theme?
Why Zen?
How to Zen?
WHO AM I?
WHO AM I?
Japo Domingo
 Web Developer/Graphic Artist/Web Designer/Animator since
2005
 Computer Science graduate
 Using Drupal since Drupal 5
 Sort of active in Drupal Pilipinas since 2013
 Currently working for Myrtec Pty. Ltd.an Australian IT firm.
 Micro startup: Bad Panda Creatives
 japo@japodomingo.com
 fb.com/japodomingo
WHYTHEME?
WHYTHEME?
Let’s play a game!
Identify the website!
ROUND 1
WHYTHEME?
What site
is this?
ROUND 2
WHYTHEME?
What site
is this?
How did you do?
THEMING IS LIKE A MAKEOVER
FORWEBSITES
BUT BE CAREFUL!
WHY ZEN?
WHAT IS ZEN?
 https://drupal.org/project/zen
 Zen is a powerful, yet simple, HTML5 starting theme with a
responsive, mobile-first grid design.
WHAT IS ZEN?
 WELL DOCUMENTED
 http://drupal.org/documentation/theme/zen
 It’s OLD but NEW which means tested.
 It’s heavily used - by HUNDREDS OFTHOUSANDS of websites.
TONS OF FEATURES!
 You may not need them in your current project, but you don’t need to
learn everything to use ZEN.
7.x-5.x features at a glance:
HTML5, HTML5 shiv (or Modernizr),
Responsive Design, Sass/Compass,
CSS, Zen Grids, Normalize CSS ,
Respond.js, IE conditional classes,
Optional IE6/7 Support,
Documentation, Swappable layouts,
Drush support, RTL language
support, Accessibility
HOWTO ZEN
STEP 1: INSTALL ZEN
Automatic
 Go to the Zen project Home page, and
'copy' the URL link location for the
Drupal-7Zen-7.x version that you want
to install.
 Visit your site page:
[your-drupal-7-
root]/admin/appearance/install
 'Paste' the download locationURL into
the field-box "Install from a URL".
 Click the button "Install".
STEP 1: INSTALL ZEN
Manual
 Download Zen from
http://drupal.org/project/zen
 Unpack the downloaded file, take the entire
zen folder (which includes the README.txt
file, a STARTERKIT folder, etc.) and place it in
your Drupal installation under
sites/all/themes. (Additional installation
folders can be used; see “Installing themes”
for more information on installing
contributed themes like Zen.)
 Log in as an administrator on your Drupal site.
For Drupal 7, go to theAppearance page at
admin/appearance. For Drupal 6, go to the
Themes page at admin/build/themes. If you
installed the theme properly, you will see the
Zen theme listed at the page-bottom under
the heading "Disabled theme".
STEP 1: INSTALL ZEN
Drush
 On terminal, go to your site’s home directory
 Enter the command ‘drush dl zen’
 Wait for it to download.
STEP 1: INSTALL ZEN
 You do not need to 'enable' the Zen theme for it to function as
a base-theme for the Zen subtheme you will create next.
STEP 2: CREATE A SUBTHEME
Copy the STARTERKIT folder at:
[drupal7-root]/sites/all/themes/zen/STARTERKIT
and put the copy one-level up at:
[drupal7-root]/sites/all/themes/STARTERKIT
Rename your new STARTERKIT folder to be your new sub-theme.
For example, rename the STARTERKIT folder to "foo", so that it resides at:
[drupal7-root]/sites/all/themes/foo
 IMPORTANT:The name of your sub-theme folder must start with an
alphabetic character and can only contain lowercase letters, numbers
and underscores.
 Why? Each theme should reside in its own folder.To make it easier to
upgrade Zen, sub-themes should reside in a folder separate from the
base theme.
STEP 2: CREATE A SUBTHEME
Rename the "STARTERKIT.info.txt" file, in your new
sub-theme folder, to include the name of your new
sub-theme; and remove the ".txt" extension.
For example, rename the file:
[drupal7-root]/sites/all/themes/foo/STARTERKIT.info.txt
to:
[drupal7-root]/sites/all/themes/foo/foo.info
STEP 2: CREATE A SUBTHEME
Edit your new .info file: Change the "name"
and "description" fields.
That is the name and description that
accompanies your new sub-theme on your
site's "Appearance" page.
Note: Instead of your having used "A Zen
sub-theme", you can type anything you like
for the 'description'.You can even use some
HTML in that description, including <a
href...>...</a> hyper-links.
STEP 2: CREATE A SUBTHEME
Choose your preferred page layout
method or grid system.
Edit your sub-theme's styles.css file (or
styles.scss if you're using SASS), and
replace the reference to responsive.css with
fixed.css.
For example, edit foo/styles.css and change
this line:
@import "layouts/responsive.css";
to:
@import "layouts/fixed.css";
In case of SASS, edit foo/styles.scss and
change this line:
@import "layouts/responsive";
to:
@import "layouts/fixed";
STEP 2: CREATE A SUBTHEME
Edit your sub-theme to use the
proper function names.
Edit the template.php and theme-
settings.php files in your sub-
theme's folder; replaceALL
occurrences of "STARTERKIT" with
the name of your sub-theme.
It’s recommended to use an editor
with the “ReplaceAll” functionality.
STEP 2: CREATE A SUBTHEME
Set your new sub-theme as your website's
default theme.
Log in as an administrator on your Drupal site.
Go to the "Appearance" page at
admin/appearance, and click the link "Enable
and set default" for your new sub-theme.
NOTE:When you change any files in your subtheme (template.php or
template files), Drupal 7 might be caching them. To apply any new changes
to any of those files, simply visit your site's "Appearance" page at [dupal7-
root]/admin/appearance.
SASS & SCSS
Sass is a scripting language that is interpreted into Cascading Style
Sheets (CSS). SassScript is the scripting language itself.
Sass consists of two syntaxes.The original syntax, called "the indented
syntax", uses a syntax similar to Haml.[3] It uses indentation to
separate code blocks and newline characters to separate rules.
The newer syntax, "SCSS", uses block formatting like that of CSS. It
uses braces to denote code blocks and semicolons to separate lines
within a block.The indented syntax and SCSS files are traditionally
given the extensions .sass and .scss respectively.
http://en.wikipedia.org/wiki/.scss
SCSS CSS
HOWTO USE SCSS IN ZEN
 Install Ruby
Linux: apt (sudo apt-get install ruby) or
yum (sudo yum install ruby)
Windows: http://www.rubyinstaller.org/
MAC: Ruby is installed by default!
 Install SASS
gem install sass
 Double check
sass -v
 Install Compass
sudo gem install compass
 To start developing, in terminal go to your theme directory and
compass watch
Compass will automatically detect changes in your scss files.
 More info here: https://drupal.org/node/1548946
WHENTO USE SCSS IN ZEN
 It depends on your situation.
 Easier
 Though not everyone knows SCSS
 ME: Use SCSS for BASIC Layout then use a
regular css file for theme styling.
 YOU: I don’t know. :DTry it out and find what
works for you.
 SCSS is a topic big enough for another
session.
STEP 3: CHANGETHE LAYOUT
We will change the layout to
fixed width, 960px wide, with 6 columns.
To check your current layout go to:
http://www.example.com/admin/structure/block/demo/foo
 Make sure compass is running.
 Edit sass/styles.scss
 Edit sass/layouts/_fixed.scss
STEP 3: CHANGINGTHE LAYOUT
 Edit sass/layouts/_fixed.scss
STEP 3: CHANGETHE LAYOUT
 Edit sass/layouts/_fixed.scss
STEP 3: CHANGINGTHE LAYOUT
STEP 3: CHANGINGTHE LAYOUT
 Edit sass/_init.scss
STEP 3: CHANGINGTHE LAYOUT
Before
After
STEP 4: ADJUST SETTINGS
Current Homepage
STEP 4: ADJUST SETTINGS
Overwrite the logo.png on your theme directory
Edit your theme settings in
/admin/appearance/settings/foo
 Upload a custom favicon
 Disable site name
 Disable site slogan
STEP 5: ADD REGIONS
You can add new regions to your theme!
We’ll add 3 new regions arranged as 3 columns just above
the footer.
First add the regions in your .info file
STEP 5: ADD REGIONS
Then copy page.tpl.php from zen into your theme.This is
where you will add the regions.
STEP 5: ADD REGIONS
Then edit the
copied
page.tpl.php.
Also add a bit of
php logic so the
regions will not
appear when all
regions are empty.
STEP 5: ADD REGIONS
Make sure to flush your site’s caches for the new regions to be detected.
Next we apply some zen grids theming to the new region containers.
STEP 5: ADD REGIONS
Then add this magical bit of scss at the end.
STEP 5: ADD REGIONS
BEFORE SCSS
AFTER SCSS
STEP 6: ADD CUSTOM CSS AND JS
 Create a new stylesheet
[drupal7-root]/sites/all/themes/foo/css/newlook.css
 Add it to your .info file
 Optionally also add javascript:
 Make sure to clear your caches after editing the .info
file
STEP 7: ADD CUSTOM SCSS
There are 2 ways to add scss.
1) Add it so it compiles to it’s own css file.
 Create your file.
 Add it into styles.scss
RESULT
STEP 7: ADD CUSTOM SCSS
There are 2 ways to add scss.
2) Add it so it’s included in styles.css
 Create your file.
 Add it into styles.scss
RESULT in styles.css
STEP 7: STYLING
Some tips on styling:
 UseWeb Development tools on your browser to quickly
identify the classes and id of specific DOM elements.
 Firefox – Firebug (an addon)
 Chrome – Inspect Element
Both of these allow you to right click anywhere on the page
and get info on DOM elements.
STEP 7: STYLING
Add your styles to
either the scss files
OR your custom css
files.
Use some photoshop
magic and epic skills.
RESULT
BEFORE AFTER
NEXT STEP:TEMPLATING
Templating is a more advanced form of theming where you edit the
.tpl.php files (i.e. template files) of your theme.
.tpl.php files area available in the zen/templates folder.
Copy any you want to use into your_theme_folder/templates
More about templates
https://drupal.org/node/190815
Topic for a future talk 
SUMMARY
Install Zen
Create a Subtheme
Change the Layout
Adjust Settings
Add Regions
Add Custom CSS and JS
Add Custom SCSS
Styling
Templating
IMPORTANT REMINDERS:
 When working with scss
make sure compass is
running.
 If your changes are not
reflecting clear your site’s
cache.
THANKYOU!
Useful Resources
CSS3 Gradient Editor
http://www.colorzilla.com/gra
dient-editor/
CSS3 Generator
http://css3generator.com/
Zen Grids
http://zengrids.com/
Get in touch!
Japo Domingo
 Myrtec Pty Ltd (we’re hiring!)
 Bad Panda Creatives (we’re not!Yet.)
 japo@japodomingo.com
 fb.com/japodomingo
 www.japodomingo.com
 Contact #: ask me!

Weitere ähnliche Inhalte

Was ist angesagt?

Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Suzanne Dergacheva
 
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
 
Zurb foundation
Zurb foundationZurb foundation
Zurb foundationsean_todd
 
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...Jer Clarke
 
Getting started with CSS frameworks using Zurb foundation
Getting started with CSS frameworks using Zurb foundationGetting started with CSS frameworks using Zurb foundation
Getting started with CSS frameworks using Zurb foundationMelanie Archer
 
Display Suite: A Themers Perspective
Display Suite: A Themers PerspectiveDisplay Suite: A Themers Perspective
Display Suite: A Themers PerspectiveMediacurrent
 
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
 
Creating Dynamic Landing Pages for Drupal with Panels - Webinar
Creating Dynamic Landing Pages for Drupal with Panels - WebinarCreating Dynamic Landing Pages for Drupal with Panels - Webinar
Creating Dynamic Landing Pages for Drupal with Panels - WebinarSuzanne Dergacheva
 
Responsive Web Design using ZURB Foundation
Responsive Web Design using ZURB FoundationResponsive Web Design using ZURB Foundation
Responsive Web Design using ZURB FoundationSolTech, Inc.
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingJamie Schmid
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationRachel Cherry
 
Using Display Suite / Context to Build your Drupal Site
Using Display Suite / Context to Build your Drupal SiteUsing Display Suite / Context to Build your Drupal Site
Using Display Suite / Context to Build your Drupal SiteMatthew Wetmore
 
From PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to lifeFrom PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to lifeDerek Christensen
 
Put A Map On It! Enhanced geolocation in WordPress with Geo Mashup
Put A Map On It! Enhanced geolocation in WordPress with Geo MashupPut A Map On It! Enhanced geolocation in WordPress with Geo Mashup
Put A Map On It! Enhanced geolocation in WordPress with Geo MashupJer Clarke
 
WordPress Theme Development Basics
WordPress Theme Development BasicsWordPress Theme Development Basics
WordPress Theme Development BasicsTech Liminal
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreSuzanne Dergacheva
 
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
 

Was ist angesagt? (20)

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
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
 
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
 
Zurb foundation
Zurb foundationZurb foundation
Zurb foundation
 
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
 
Getting started with CSS frameworks using Zurb foundation
Getting started with CSS frameworks using Zurb foundationGetting started with CSS frameworks using Zurb foundation
Getting started with CSS frameworks using Zurb foundation
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
 
Display Suite: A Themers Perspective
Display Suite: A Themers PerspectiveDisplay Suite: A Themers Perspective
Display Suite: A Themers Perspective
 
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
 
Creating Dynamic Landing Pages for Drupal with Panels - Webinar
Creating Dynamic Landing Pages for Drupal with Panels - WebinarCreating Dynamic Landing Pages for Drupal with Panels - Webinar
Creating Dynamic Landing Pages for Drupal with Panels - Webinar
 
Responsive Web Design using ZURB Foundation
Responsive Web Design using ZURB FoundationResponsive Web Design using ZURB Foundation
Responsive Web Design using ZURB Foundation
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress Themeing
 
Efficient theming in Drupal
Efficient theming in DrupalEfficient theming in Drupal
Efficient theming in Drupal
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
 
Using Display Suite / Context to Build your Drupal Site
Using Display Suite / Context to Build your Drupal SiteUsing Display Suite / Context to Build your Drupal Site
Using Display Suite / Context to Build your Drupal Site
 
From PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to lifeFrom PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to life
 
Put A Map On It! Enhanced geolocation in WordPress with Geo Mashup
Put A Map On It! Enhanced geolocation in WordPress with Geo MashupPut A Map On It! Enhanced geolocation in WordPress with Geo Mashup
Put A Map On It! Enhanced geolocation in WordPress with Geo Mashup
 
WordPress Theme Development Basics
WordPress Theme Development BasicsWordPress Theme Development Basics
WordPress Theme Development Basics
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
 
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
 

Andere mochten auch

Zen Test Labs Mobile Application Testing
Zen Test Labs Mobile Application TestingZen Test Labs Mobile Application Testing
Zen Test Labs Mobile Application TestingZen Test Labs
 
Global SEO Approach Case Study
Global SEO Approach Case StudyGlobal SEO Approach Case Study
Global SEO Approach Case StudyBluerank
 
Google Search Policy Primer
Google Search Policy PrimerGoogle Search Policy Primer
Google Search Policy PrimerBarnes 013
 
Presentation the zen way
Presentation the zen wayPresentation the zen way
Presentation the zen wayChris Leong
 
Designing WordPress - Heart&Sole2011
Designing WordPress - Heart&Sole2011Designing WordPress - Heart&Sole2011
Designing WordPress - Heart&Sole2011John O'Nolan
 
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless Technologies
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless TechnologiesPresentation on 1G/2G/3G/4G/5G/Cellular & Wireless Technologies
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless TechnologiesKaushal Kaith
 
Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013Fabernovel
 

Andere mochten auch (9)

Zen Test Labs Mobile Application Testing
Zen Test Labs Mobile Application TestingZen Test Labs Mobile Application Testing
Zen Test Labs Mobile Application Testing
 
Global SEO Approach Case Study
Global SEO Approach Case StudyGlobal SEO Approach Case Study
Global SEO Approach Case Study
 
Google Search Policy Primer
Google Search Policy PrimerGoogle Search Policy Primer
Google Search Policy Primer
 
Presentation the zen way
Presentation the zen wayPresentation the zen way
Presentation the zen way
 
Designing WordPress - Heart&Sole2011
Designing WordPress - Heart&Sole2011Designing WordPress - Heart&Sole2011
Designing WordPress - Heart&Sole2011
 
All about Google
All about GoogleAll about Google
All about Google
 
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless Technologies
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless TechnologiesPresentation on 1G/2G/3G/4G/5G/Cellular & Wireless Technologies
Presentation on 1G/2G/3G/4G/5G/Cellular & Wireless Technologies
 
Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013
 
How Google Works
How Google WorksHow Google Works
How Google Works
 

Ähnlich wie Drupal Camp Manila 2014 - Theming with Zen

Bootstrap Framework and Drupal
Bootstrap Framework and DrupalBootstrap Framework and Drupal
Bootstrap Framework and DrupalJim Birch
 
Drupal theming training
Drupal theming trainingDrupal theming training
Drupal theming trainingdropsolid
 
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8Anne Tomasevich
 
Installing And Configuration for your Wordpress blog
Installing And Configuration for your Wordpress blogInstalling And Configuration for your Wordpress blog
Installing And Configuration for your Wordpress blogigorgentry
 
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
 
Designing for magento
Designing for magentoDesigning for magento
Designing for magentohainutemicute
 
7 Theming in Drupal
7 Theming in Drupal7 Theming in Drupal
7 Theming in DrupalWingston
 
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAdvanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAidan Foster
 
Converting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 ThemeConverting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 ThemeAdolfo Nasol
 
The Advantages of Using SASS and Gulp
The Advantages of Using SASS and GulpThe Advantages of Using SASS and Gulp
The Advantages of Using SASS and GulpAndrew Stitt, MBA
 
Front end performance optimization
Front end performance optimizationFront end performance optimization
Front end performance optimizationStevie T
 
Levelling up your WordPress development workflow
Levelling up your WordPress development workflowLevelling up your WordPress development workflow
Levelling up your WordPress development workflowdaraskolnick
 
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS OrganizationApril 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS OrganizationEric Sembrat
 
WordPress Child Theme Workshop
WordPress Child Theme WorkshopWordPress Child Theme Workshop
WordPress Child Theme WorkshopCarme Mias
 
SynapseIndia drupal presentation on drupal best practices
SynapseIndia drupal  presentation on drupal best practicesSynapseIndia drupal  presentation on drupal best practices
SynapseIndia drupal presentation on drupal best practicesSynapseindiappsdevelopment
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with StyleTimothy Knight
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress ThemesLaura Hartwig
 
PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)kuydigital
 

Ähnlich wie Drupal Camp Manila 2014 - Theming with Zen (20)

Bootstrap Framework and Drupal
Bootstrap Framework and DrupalBootstrap Framework and Drupal
Bootstrap Framework and Drupal
 
Drupal theming training
Drupal theming trainingDrupal theming training
Drupal theming training
 
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8
 
Installing And Configuration for your Wordpress blog
Installing And Configuration for your Wordpress blogInstalling And Configuration for your Wordpress blog
Installing And Configuration for your Wordpress blog
 
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
 
Designing for magento
Designing for magentoDesigning for magento
Designing for magento
 
7 Theming in Drupal
7 Theming in Drupal7 Theming in Drupal
7 Theming in Drupal
 
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAdvanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
 
Drupal
DrupalDrupal
Drupal
 
Drupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating ModulesDrupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating Modules
 
Converting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 ThemeConverting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 Theme
 
The Advantages of Using SASS and Gulp
The Advantages of Using SASS and GulpThe Advantages of Using SASS and Gulp
The Advantages of Using SASS and Gulp
 
Front end performance optimization
Front end performance optimizationFront end performance optimization
Front end performance optimization
 
Levelling up your WordPress development workflow
Levelling up your WordPress development workflowLevelling up your WordPress development workflow
Levelling up your WordPress development workflow
 
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS OrganizationApril 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
 
WordPress Child Theme Workshop
WordPress Child Theme WorkshopWordPress Child Theme Workshop
WordPress Child Theme Workshop
 
SynapseIndia drupal presentation on drupal best practices
SynapseIndia drupal  presentation on drupal best practicesSynapseIndia drupal  presentation on drupal best practices
SynapseIndia drupal presentation on drupal best practices
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with Style
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)
 

Kürzlich hochgeladen

Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxAneriPatwari
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 

Drupal Camp Manila 2014 - Theming with Zen

  • 1. THEMINGWITH ZEN Japo Domingo Drupal Developer Drupal.org id: japo32
  • 2. WHAT’S HAPPENING NOW Who am I? Why theme? Why Zen? How to Zen?
  • 4. WHO AM I? Japo Domingo  Web Developer/Graphic Artist/Web Designer/Animator since 2005  Computer Science graduate  Using Drupal since Drupal 5  Sort of active in Drupal Pilipinas since 2013  Currently working for Myrtec Pty. Ltd.an Australian IT firm.  Micro startup: Bad Panda Creatives  japo@japodomingo.com  fb.com/japodomingo
  • 6. WHYTHEME? Let’s play a game! Identify the website!
  • 9.
  • 12.
  • 13. How did you do?
  • 14. THEMING IS LIKE A MAKEOVER FORWEBSITES
  • 17. WHAT IS ZEN?  https://drupal.org/project/zen  Zen is a powerful, yet simple, HTML5 starting theme with a responsive, mobile-first grid design.
  • 18. WHAT IS ZEN?  WELL DOCUMENTED  http://drupal.org/documentation/theme/zen  It’s OLD but NEW which means tested.  It’s heavily used - by HUNDREDS OFTHOUSANDS of websites.
  • 19. TONS OF FEATURES!  You may not need them in your current project, but you don’t need to learn everything to use ZEN. 7.x-5.x features at a glance: HTML5, HTML5 shiv (or Modernizr), Responsive Design, Sass/Compass, CSS, Zen Grids, Normalize CSS , Respond.js, IE conditional classes, Optional IE6/7 Support, Documentation, Swappable layouts, Drush support, RTL language support, Accessibility
  • 21. STEP 1: INSTALL ZEN Automatic  Go to the Zen project Home page, and 'copy' the URL link location for the Drupal-7Zen-7.x version that you want to install.  Visit your site page: [your-drupal-7- root]/admin/appearance/install  'Paste' the download locationURL into the field-box "Install from a URL".  Click the button "Install".
  • 22. STEP 1: INSTALL ZEN Manual  Download Zen from http://drupal.org/project/zen  Unpack the downloaded file, take the entire zen folder (which includes the README.txt file, a STARTERKIT folder, etc.) and place it in your Drupal installation under sites/all/themes. (Additional installation folders can be used; see “Installing themes” for more information on installing contributed themes like Zen.)  Log in as an administrator on your Drupal site. For Drupal 7, go to theAppearance page at admin/appearance. For Drupal 6, go to the Themes page at admin/build/themes. If you installed the theme properly, you will see the Zen theme listed at the page-bottom under the heading "Disabled theme".
  • 23. STEP 1: INSTALL ZEN Drush  On terminal, go to your site’s home directory  Enter the command ‘drush dl zen’  Wait for it to download.
  • 24. STEP 1: INSTALL ZEN  You do not need to 'enable' the Zen theme for it to function as a base-theme for the Zen subtheme you will create next.
  • 25. STEP 2: CREATE A SUBTHEME Copy the STARTERKIT folder at: [drupal7-root]/sites/all/themes/zen/STARTERKIT and put the copy one-level up at: [drupal7-root]/sites/all/themes/STARTERKIT Rename your new STARTERKIT folder to be your new sub-theme. For example, rename the STARTERKIT folder to "foo", so that it resides at: [drupal7-root]/sites/all/themes/foo  IMPORTANT:The name of your sub-theme folder must start with an alphabetic character and can only contain lowercase letters, numbers and underscores.  Why? Each theme should reside in its own folder.To make it easier to upgrade Zen, sub-themes should reside in a folder separate from the base theme.
  • 26. STEP 2: CREATE A SUBTHEME Rename the "STARTERKIT.info.txt" file, in your new sub-theme folder, to include the name of your new sub-theme; and remove the ".txt" extension. For example, rename the file: [drupal7-root]/sites/all/themes/foo/STARTERKIT.info.txt to: [drupal7-root]/sites/all/themes/foo/foo.info
  • 27. STEP 2: CREATE A SUBTHEME Edit your new .info file: Change the "name" and "description" fields. That is the name and description that accompanies your new sub-theme on your site's "Appearance" page. Note: Instead of your having used "A Zen sub-theme", you can type anything you like for the 'description'.You can even use some HTML in that description, including <a href...>...</a> hyper-links.
  • 28. STEP 2: CREATE A SUBTHEME Choose your preferred page layout method or grid system. Edit your sub-theme's styles.css file (or styles.scss if you're using SASS), and replace the reference to responsive.css with fixed.css. For example, edit foo/styles.css and change this line: @import "layouts/responsive.css"; to: @import "layouts/fixed.css"; In case of SASS, edit foo/styles.scss and change this line: @import "layouts/responsive"; to: @import "layouts/fixed";
  • 29. STEP 2: CREATE A SUBTHEME Edit your sub-theme to use the proper function names. Edit the template.php and theme- settings.php files in your sub- theme's folder; replaceALL occurrences of "STARTERKIT" with the name of your sub-theme. It’s recommended to use an editor with the “ReplaceAll” functionality.
  • 30. STEP 2: CREATE A SUBTHEME Set your new sub-theme as your website's default theme. Log in as an administrator on your Drupal site. Go to the "Appearance" page at admin/appearance, and click the link "Enable and set default" for your new sub-theme. NOTE:When you change any files in your subtheme (template.php or template files), Drupal 7 might be caching them. To apply any new changes to any of those files, simply visit your site's "Appearance" page at [dupal7- root]/admin/appearance.
  • 31. SASS & SCSS Sass is a scripting language that is interpreted into Cascading Style Sheets (CSS). SassScript is the scripting language itself. Sass consists of two syntaxes.The original syntax, called "the indented syntax", uses a syntax similar to Haml.[3] It uses indentation to separate code blocks and newline characters to separate rules. The newer syntax, "SCSS", uses block formatting like that of CSS. It uses braces to denote code blocks and semicolons to separate lines within a block.The indented syntax and SCSS files are traditionally given the extensions .sass and .scss respectively. http://en.wikipedia.org/wiki/.scss
  • 33. HOWTO USE SCSS IN ZEN  Install Ruby Linux: apt (sudo apt-get install ruby) or yum (sudo yum install ruby) Windows: http://www.rubyinstaller.org/ MAC: Ruby is installed by default!  Install SASS gem install sass  Double check sass -v  Install Compass sudo gem install compass  To start developing, in terminal go to your theme directory and compass watch Compass will automatically detect changes in your scss files.  More info here: https://drupal.org/node/1548946
  • 34. WHENTO USE SCSS IN ZEN  It depends on your situation.  Easier  Though not everyone knows SCSS  ME: Use SCSS for BASIC Layout then use a regular css file for theme styling.  YOU: I don’t know. :DTry it out and find what works for you.  SCSS is a topic big enough for another session.
  • 35. STEP 3: CHANGETHE LAYOUT We will change the layout to fixed width, 960px wide, with 6 columns. To check your current layout go to: http://www.example.com/admin/structure/block/demo/foo  Make sure compass is running.  Edit sass/styles.scss  Edit sass/layouts/_fixed.scss
  • 36. STEP 3: CHANGINGTHE LAYOUT  Edit sass/layouts/_fixed.scss
  • 37. STEP 3: CHANGETHE LAYOUT  Edit sass/layouts/_fixed.scss
  • 39. STEP 3: CHANGINGTHE LAYOUT  Edit sass/_init.scss
  • 40. STEP 3: CHANGINGTHE LAYOUT Before After
  • 41. STEP 4: ADJUST SETTINGS Current Homepage
  • 42. STEP 4: ADJUST SETTINGS Overwrite the logo.png on your theme directory Edit your theme settings in /admin/appearance/settings/foo  Upload a custom favicon  Disable site name  Disable site slogan
  • 43. STEP 5: ADD REGIONS You can add new regions to your theme! We’ll add 3 new regions arranged as 3 columns just above the footer. First add the regions in your .info file
  • 44. STEP 5: ADD REGIONS Then copy page.tpl.php from zen into your theme.This is where you will add the regions.
  • 45. STEP 5: ADD REGIONS Then edit the copied page.tpl.php. Also add a bit of php logic so the regions will not appear when all regions are empty.
  • 46. STEP 5: ADD REGIONS Make sure to flush your site’s caches for the new regions to be detected. Next we apply some zen grids theming to the new region containers.
  • 47. STEP 5: ADD REGIONS Then add this magical bit of scss at the end.
  • 48. STEP 5: ADD REGIONS BEFORE SCSS AFTER SCSS
  • 49. STEP 6: ADD CUSTOM CSS AND JS  Create a new stylesheet [drupal7-root]/sites/all/themes/foo/css/newlook.css  Add it to your .info file  Optionally also add javascript:  Make sure to clear your caches after editing the .info file
  • 50. STEP 7: ADD CUSTOM SCSS There are 2 ways to add scss. 1) Add it so it compiles to it’s own css file.  Create your file.  Add it into styles.scss RESULT
  • 51. STEP 7: ADD CUSTOM SCSS There are 2 ways to add scss. 2) Add it so it’s included in styles.css  Create your file.  Add it into styles.scss RESULT in styles.css
  • 52. STEP 7: STYLING Some tips on styling:  UseWeb Development tools on your browser to quickly identify the classes and id of specific DOM elements.  Firefox – Firebug (an addon)  Chrome – Inspect Element Both of these allow you to right click anywhere on the page and get info on DOM elements.
  • 53. STEP 7: STYLING Add your styles to either the scss files OR your custom css files. Use some photoshop magic and epic skills.
  • 55. NEXT STEP:TEMPLATING Templating is a more advanced form of theming where you edit the .tpl.php files (i.e. template files) of your theme. .tpl.php files area available in the zen/templates folder. Copy any you want to use into your_theme_folder/templates More about templates https://drupal.org/node/190815 Topic for a future talk 
  • 56. SUMMARY Install Zen Create a Subtheme Change the Layout Adjust Settings Add Regions Add Custom CSS and JS Add Custom SCSS Styling Templating IMPORTANT REMINDERS:  When working with scss make sure compass is running.  If your changes are not reflecting clear your site’s cache.
  • 57. THANKYOU! Useful Resources CSS3 Gradient Editor http://www.colorzilla.com/gra dient-editor/ CSS3 Generator http://css3generator.com/ Zen Grids http://zengrids.com/ Get in touch! Japo Domingo  Myrtec Pty Ltd (we’re hiring!)  Bad Panda Creatives (we’re not!Yet.)  japo@japodomingo.com  fb.com/japodomingo  www.japodomingo.com  Contact #: ask me!