SlideShare a Scribd company logo
Theming on Drupal 7
Working with Omega’s Responsive Framework
Eric Sembrat
Advanced Computing Services
Kennesaw State University
April 2012
Introduction
Drupal 7
• With Drupal 7, we have chosen the Omega
theming framework for developing new and
custom themes.
• Omega operates differently compared to
Zen (our framework for D6 and early D7
sites).
• Project Site
What’s the Big Change
in Drupal 7?
• Theming has always been a combination of
CSS and HTML/PHP.
• Working with Omega is similar to
Moodle theming, Drupal 6 theming.
• The main difference is that you’re theming
to an adaptive site, which means that your
approach to theming should be altered
slightly.
Adaptive?
• What adaptive means is that the page
rendering is dependent on the browser
size.
• Mobile versions.
• Small screen-sizes.
• Large screen-sizes.
• See Google Mail and DrupalCon 2012.
Adaptive!
• With Omega, your theme building should
be primarily concerned with CSS and
styling.
• Site layouts are integrated into Omega (1
sidebar, 2 sidebar, no sidebar).
• Footers and headers (even prefaces and
post-scripts) are aplenty.
Just CSS? Great!
• What this means is that your themes will
be primarily composed of CSS files and
images, with little (if any) tinkering
of .tpl.php files.
• .tpl.php Files - the “templates” to pages
(such as headers, content).
• Elements should be hidden with CSS.
Getting Started with
Omega
Your First Theme
• Building your first theme with Omega is
going to be like going out on a first date.
• You’re going to be nervous to make
changes, and jittery about making big
moves.
• You’re going to be careful in what you do.
• But you shouldn’t worry. Why?
Saving the Day
• Omega is built so that if you run into
issues, you can leave to go “answer an
emergency call”.
• Omega provides you a framework so that
the core of the styling is never adjusted.
• That way, you can’t break the underlying
magic that makes the adaptive theming
work.
Hierarchy
• Omega (core)
• Alpha (core base-theme)
• Your Theme!
• These are included in the Omega project
download, so stop worrying and jump right
in.
Getting Started
Precursors
• Before we begin, download Acquia Dev
Desktop.
• It’s a package that builds a web-server for
your local machine (also known as an
‘AMP’).
• Install Drupal, set up your local user
account.
Lemme Download
• Download the Omega Project from
Drupal.org.
• Grab the stable recommended releases.
• Development releases may change
between commits, and future
functionality may not be present in
milestones.
Theming 101
• Within the Omega package, there is a
folder called starterkits.
• Rename the omega-html5 folder to the
name of your theme.
• Do the same for the .info file and each of
the .css files in the /css folder.
• You’ve created a theme!
Theming 102
• Making these changes will allow your
subtheme to show up on your Drupal site
if you place the theme in the themes/
folder.
• Your subtheme requires Omega and
Alpha to be in themes/ as well, so add
them.
Omega Tools?
• Omega Tools is a fantastic module for local
development that allows you to:
• Custom Setup of Omega Sub-Themes
rather than the process outlined.
• Exporting Theme Settings to .info.
• Reverting Theme Settings, if you make a
colossal mistake.
Aside
It’s all about the CSS.
CSS
• I suggest working with a CSS compiler such
as LESS or SASS.
• This allows you to use custom variables
for colors and commonly-used attributes.
• It simplifies CSS3 elements so that the
styling is optimized for all browsers.
CSS Compilers
• One word of caution for using compilers.
• Changes to CSS will take longer to make
due to having to recompile and place in
your theme.
• SASS requires Ruby.
• Using Compass as your CSS editor may
save you a lot of headache.
CSS Compilers
• There are also plugins for Drupal that
take .sass or .less uncompiled styling and
compiles the styling on the server.
• Requires Ruby to be installed on the
server.
The Meat of the Matter
Theming within Omega
• Theming (CSS work) in Omega is
mobile-first.
• Your mobile CSS will be inherited
throughout the other layout sizes unless
you specify otherwise through
declaration.
• Since mobile theming may be styled
differently, this can be a headache.
Theming within Omega
Theming within Omega
CSS Hierarchy
• Theming is determined by:
• Global.CSS
• [themename]-default.CSS
• [themename]-narrow.CSS
• [themename]-normal.CSS
• [themename]-wide.CSS
CSS Hierarchy Phase 2
• Theming is determined in this way:
• Mobile Theming CSS
• Default CSS
• CSS for Narrow layout.
• CSS for Normal layout.
• CSS for Wide layout.
What do I theme?
• Enable your Drupal Omega subtheme.
• Now, enable the Debugging Blocks for
Omega.
• This will display all the available blocks
Omega provides you, which are disabled if
the block area is empty.
How do I find
information?
• Chrome + Inspector =Your best friend.
• From any page on Drupal with the
debugging elements exposed, right click on
the element and select Inspect Element.
• Theming just became 1000% easier.
What’s Next?
• With this information, you can theme.
• Find out which element you want to
theme, open up the CSS file you want to
work with, and go to work!
How to Theme
Correctly
• Each page in Omega is composed of:
• Page
• Section
• Wrapper
• Zone
• Region
• Region-Inner
Hierarchy
Hierarchy
Theming
• Which aspect you select depends on what
parts of the page you want the CSS to
apply to.
• Wrappers are the binding glue of each
sections.
• Zones encompass only where text and
content can go.
Theming - Sizing
• What this means is that wrappers should
not be touched for width adjustment. Ever.
• Wrappers are controlled by the Omega
and Alpha themes for sizing and
adaptability.
• You should not be overwriting width: and
height: for these.
• Do it for Zones instead.
Hierarchy is Good!
• The hierarchy in Omega construction is
great news, since you likely will not have to
edit .tpl.php files to identify zones or
regions for styling.
• Omega has you covered!
• I will not be going over the basics of how
to do CSS styling in this presentation
Looking for more
information?
Where to Find Help
• Omega Documentation
• Omega Micro-Site
• W3Schools’ CSS Documentation
Eric Sembrat
Advanced Computing Services
Kennesaw State University
April 2012

More Related Content

PDF
Child Theme Basics & Twenty Seventeen Theme Demo
PDF
WordPress Theme Basics
PPTX
Customizing WordPress Themes
PPTX
TBEX Europe 2016 - Ebook from Content to Formatting to Publication
PPTX
Working with WordPress themes
PPTX
HTML/CSS for WordPress
PPTX
WordPress and Child Themes
PDF
WordPress Theme Workshop: Part 4
Child Theme Basics & Twenty Seventeen Theme Demo
WordPress Theme Basics
Customizing WordPress Themes
TBEX Europe 2016 - Ebook from Content to Formatting to Publication
Working with WordPress themes
HTML/CSS for WordPress
WordPress and Child Themes
WordPress Theme Workshop: Part 4

What's hot (20)

ODP
Sustainable Theming
PDF
WordPress Theme Workshop: Part 1
PDF
WordPress Theme Workshop: Part 0
PDF
April 2016 - Atlanta WordPress Users Group - Child Themes
PPTX
Wordpress Page Load Speed - Kenneth sytian
PPT
Green Hectares Rural Tech Workshop - Adding Content
PPTX
Word Press Intro for Beginners
PPT
WordPress 101
PPT
Session iv(master pages)
PPSX
Steph's Html5 and css presentation
PPTX
Web Images, The Right Way
PDF
Preparing images for the Web
PPTX
WordPress Themes - From Designer’s Perspective
PDF
Child Themes and CSS in WordPress
PPTX
Website Performance
PPTX
The SEO Workshop (session 2)
PDF
Rock Your Blocks! Web Design Acceleration with Genesis Pro
PDF
Word press theme and plugins WordCamp Presentation
PPTX
JakartaJS - How I Learn Javascript From Basic
PDF
introduce baker ebook framework
Sustainable Theming
WordPress Theme Workshop: Part 1
WordPress Theme Workshop: Part 0
April 2016 - Atlanta WordPress Users Group - Child Themes
Wordpress Page Load Speed - Kenneth sytian
Green Hectares Rural Tech Workshop - Adding Content
Word Press Intro for Beginners
WordPress 101
Session iv(master pages)
Steph's Html5 and css presentation
Web Images, The Right Way
Preparing images for the Web
WordPress Themes - From Designer’s Perspective
Child Themes and CSS in WordPress
Website Performance
The SEO Workshop (session 2)
Rock Your Blocks! Web Design Acceleration with Genesis Pro
Word press theme and plugins WordCamp Presentation
JakartaJS - How I Learn Javascript From Basic
introduce baker ebook framework
Ad

Viewers also liked (7)

PDF
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
PDF
November 2016 - ECN - You're Speaking Drupalese to Me
PDF
October 2016 - edUi - Save Us, Self Service!
PDF
October 2016 - USG Rock Eagle - Everything You Need to Know to Plan Your Drup...
PDF
November 2016 - Georgia Tech - Building a Research Website
PDF
Inovação Aberta, Ecossistemas de Startups e sua Evolução
PDF
January 2017 - WPCampus Online - Learning from Drupal: Implementing WordPress...
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
November 2016 - ECN - You're Speaking Drupalese to Me
October 2016 - edUi - Save Us, Self Service!
October 2016 - USG Rock Eagle - Everything You Need to Know to Plan Your Drup...
November 2016 - Georgia Tech - Building a Research Website
Inovação Aberta, Ecossistemas de Startups e sua Evolução
January 2017 - WPCampus Online - Learning from Drupal: Implementing WordPress...
Ad

Similar to Drupal 7: Theming with Omega (20)

PPTX
Atlanta Drupal User Group (ADUG)
PDF
Designing True Cross-Platform Apps
PDF
Nanocon Taiwan
PDF
New Adventures in Drupal Theming
PDF
Drupal 7 ninja theming
PDF
Evaluating Base Themes
PPTX
Php Indonesia x Bliblidotcom - Architecting Scalable CSS
PPTX
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
PDF
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
PDF
Selecting a WordPress theme
PDF
Child Theme Frameworks
KEY
Let's dig into the Omega Theme!
PPTX
Template overrides austin
PPT
Drupal theming 101
PDF
Create Your Own Starter Files
KEY
Designing in the Browser - Mason Wendell, Drupaldelphia
PDF
Drupal Aware Design: Good Techniques for Better Themes
PDF
Mastering universal theme
PDF
Dig into the omega theme
PPTX
Child Themes, Starter Themes, and Frameworks... Oh My!
Atlanta Drupal User Group (ADUG)
Designing True Cross-Platform Apps
Nanocon Taiwan
New Adventures in Drupal Theming
Drupal 7 ninja theming
Evaluating Base Themes
Php Indonesia x Bliblidotcom - Architecting Scalable CSS
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Selecting a WordPress theme
Child Theme Frameworks
Let's dig into the Omega Theme!
Template overrides austin
Drupal theming 101
Create Your Own Starter Files
Designing in the Browser - Mason Wendell, Drupaldelphia
Drupal Aware Design: Good Techniques for Better Themes
Mastering universal theme
Dig into the omega theme
Child Themes, Starter Themes, and Frameworks... Oh My!

More from Eric Sembrat (20)

PDF
WPCampus 2019 - Website Renewal Services
PDF
September 2018 - Georgia Tech - Science Communications Workshop - Building We...
PDF
USG Web Tech Day 2018 - Microsoft Teams, Collaboration, & You
PDF
USG Web Tech Day 2017 - CMS Tunnel Vision
PDF
USG Rock Eagle 2017 - PWP at 1000 Days
PDF
HighEdWeb 2017 - Unbundle Your Institution: Building a Web Ecosystem
PDF
August 2016 - DrupalCorn - The Paragraphs Cake - Structured & Layered Content...
PDF
April 2016 - USG Web Tech Day - Let's Talk Drupal
PDF
October 2015 - USG Rock Eagle - USGweb
PDF
October 2015 - USG Rock Eagle - Drupal 8
PDF
USG Rock Eagle - October 2015 - PWP at Georgia Tech
PDF
Atlanta Drupal Users Group - October 2015 - Success of the GT Redesign
PDF
August 2015 - Web Governance - PWP Introduction
PDF
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
PDF
Georgia Tech Drupal Users Group - March 2015
PDF
Georgia Tech Drupal Users Group - February 2015 Meeting
PDF
Atlanta Drupal Users Group - January 2015 - Georgia Tech & Drupal
PDF
October 2014 - USG Rock Eagle - Drupal 101
PDF
October 2014 - USG Rock Eagle - Sass 101
PDF
Georgia Tech Drupal Users Group - October 2014 Meeting
WPCampus 2019 - Website Renewal Services
September 2018 - Georgia Tech - Science Communications Workshop - Building We...
USG Web Tech Day 2018 - Microsoft Teams, Collaboration, & You
USG Web Tech Day 2017 - CMS Tunnel Vision
USG Rock Eagle 2017 - PWP at 1000 Days
HighEdWeb 2017 - Unbundle Your Institution: Building a Web Ecosystem
August 2016 - DrupalCorn - The Paragraphs Cake - Structured & Layered Content...
April 2016 - USG Web Tech Day - Let's Talk Drupal
October 2015 - USG Rock Eagle - USGweb
October 2015 - USG Rock Eagle - Drupal 8
USG Rock Eagle - October 2015 - PWP at Georgia Tech
Atlanta Drupal Users Group - October 2015 - Success of the GT Redesign
August 2015 - Web Governance - PWP Introduction
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
Georgia Tech Drupal Users Group - March 2015
Georgia Tech Drupal Users Group - February 2015 Meeting
Atlanta Drupal Users Group - January 2015 - Georgia Tech & Drupal
October 2014 - USG Rock Eagle - Drupal 101
October 2014 - USG Rock Eagle - Sass 101
Georgia Tech Drupal Users Group - October 2014 Meeting

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Machine Learning_overview_presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
Machine Learning_overview_presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Programs and apps: productivity, graphics, security and other tools
Encapsulation_ Review paper, used for researhc scholars
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx

Drupal 7: Theming with Omega

  • 1. Theming on Drupal 7 Working with Omega’s Responsive Framework Eric Sembrat Advanced Computing Services Kennesaw State University April 2012
  • 3. Drupal 7 • With Drupal 7, we have chosen the Omega theming framework for developing new and custom themes. • Omega operates differently compared to Zen (our framework for D6 and early D7 sites). • Project Site
  • 4. What’s the Big Change in Drupal 7? • Theming has always been a combination of CSS and HTML/PHP. • Working with Omega is similar to Moodle theming, Drupal 6 theming. • The main difference is that you’re theming to an adaptive site, which means that your approach to theming should be altered slightly.
  • 5. Adaptive? • What adaptive means is that the page rendering is dependent on the browser size. • Mobile versions. • Small screen-sizes. • Large screen-sizes. • See Google Mail and DrupalCon 2012.
  • 6. Adaptive! • With Omega, your theme building should be primarily concerned with CSS and styling. • Site layouts are integrated into Omega (1 sidebar, 2 sidebar, no sidebar). • Footers and headers (even prefaces and post-scripts) are aplenty.
  • 7. Just CSS? Great! • What this means is that your themes will be primarily composed of CSS files and images, with little (if any) tinkering of .tpl.php files. • .tpl.php Files - the “templates” to pages (such as headers, content). • Elements should be hidden with CSS.
  • 9. Your First Theme • Building your first theme with Omega is going to be like going out on a first date. • You’re going to be nervous to make changes, and jittery about making big moves. • You’re going to be careful in what you do. • But you shouldn’t worry. Why?
  • 10. Saving the Day • Omega is built so that if you run into issues, you can leave to go “answer an emergency call”. • Omega provides you a framework so that the core of the styling is never adjusted. • That way, you can’t break the underlying magic that makes the adaptive theming work.
  • 11. Hierarchy • Omega (core) • Alpha (core base-theme) • Your Theme! • These are included in the Omega project download, so stop worrying and jump right in.
  • 13. Precursors • Before we begin, download Acquia Dev Desktop. • It’s a package that builds a web-server for your local machine (also known as an ‘AMP’). • Install Drupal, set up your local user account.
  • 14. Lemme Download • Download the Omega Project from Drupal.org. • Grab the stable recommended releases. • Development releases may change between commits, and future functionality may not be present in milestones.
  • 15. Theming 101 • Within the Omega package, there is a folder called starterkits. • Rename the omega-html5 folder to the name of your theme. • Do the same for the .info file and each of the .css files in the /css folder. • You’ve created a theme!
  • 16. Theming 102 • Making these changes will allow your subtheme to show up on your Drupal site if you place the theme in the themes/ folder. • Your subtheme requires Omega and Alpha to be in themes/ as well, so add them.
  • 17. Omega Tools? • Omega Tools is a fantastic module for local development that allows you to: • Custom Setup of Omega Sub-Themes rather than the process outlined. • Exporting Theme Settings to .info. • Reverting Theme Settings, if you make a colossal mistake.
  • 19. CSS • I suggest working with a CSS compiler such as LESS or SASS. • This allows you to use custom variables for colors and commonly-used attributes. • It simplifies CSS3 elements so that the styling is optimized for all browsers.
  • 20. CSS Compilers • One word of caution for using compilers. • Changes to CSS will take longer to make due to having to recompile and place in your theme. • SASS requires Ruby. • Using Compass as your CSS editor may save you a lot of headache.
  • 21. CSS Compilers • There are also plugins for Drupal that take .sass or .less uncompiled styling and compiles the styling on the server. • Requires Ruby to be installed on the server.
  • 22. The Meat of the Matter
  • 23. Theming within Omega • Theming (CSS work) in Omega is mobile-first. • Your mobile CSS will be inherited throughout the other layout sizes unless you specify otherwise through declaration. • Since mobile theming may be styled differently, this can be a headache.
  • 26. CSS Hierarchy • Theming is determined by: • Global.CSS • [themename]-default.CSS • [themename]-narrow.CSS • [themename]-normal.CSS • [themename]-wide.CSS
  • 27. CSS Hierarchy Phase 2 • Theming is determined in this way: • Mobile Theming CSS • Default CSS • CSS for Narrow layout. • CSS for Normal layout. • CSS for Wide layout.
  • 28. What do I theme? • Enable your Drupal Omega subtheme. • Now, enable the Debugging Blocks for Omega. • This will display all the available blocks Omega provides you, which are disabled if the block area is empty.
  • 29. How do I find information? • Chrome + Inspector =Your best friend. • From any page on Drupal with the debugging elements exposed, right click on the element and select Inspect Element. • Theming just became 1000% easier.
  • 30. What’s Next? • With this information, you can theme. • Find out which element you want to theme, open up the CSS file you want to work with, and go to work!
  • 31. How to Theme Correctly • Each page in Omega is composed of: • Page • Section • Wrapper • Zone • Region • Region-Inner
  • 34. Theming • Which aspect you select depends on what parts of the page you want the CSS to apply to. • Wrappers are the binding glue of each sections. • Zones encompass only where text and content can go.
  • 35. Theming - Sizing • What this means is that wrappers should not be touched for width adjustment. Ever. • Wrappers are controlled by the Omega and Alpha themes for sizing and adaptability. • You should not be overwriting width: and height: for these. • Do it for Zones instead.
  • 36. Hierarchy is Good! • The hierarchy in Omega construction is great news, since you likely will not have to edit .tpl.php files to identify zones or regions for styling. • Omega has you covered! • I will not be going over the basics of how to do CSS styling in this presentation
  • 38. Where to Find Help • Omega Documentation • Omega Micro-Site • W3Schools’ CSS Documentation
  • 39. Eric Sembrat Advanced Computing Services Kennesaw State University April 2012