Theming on Drupal 7. Working with Omega s Responsive Framework



Similar documents
Let's Dig Into the Omega Theme October 27,

GETTING STARTED WITH DRUPAL. by Stephen Cross

Magic Liquidizer Documentation

Coding HTML Tips, Tricks and Best Practices

ireview Template Manual

CMS Training. Prepared for the Nature Conservancy. March 2012

Blueball First Class Sandvox Designs v2.0 Works with Sandvox 2+ only!

Building Your First Drupal 8 Company Site

Quick Start Guide Mobile Entrée 4

Salesforce Customer Portal Implementation Guide

Wiki Server. Innovative tools for workgroup collaboration and communication. Features

Blueball Design Dynamic Content 2 Stack Readme Manual v1.0

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

How To Customize A Forum On Vanilla Forum On A Pcode (Forum) On A Windows (For Forum) On An Html5 (Forums) On Pcode Or Windows 7 (Forforums) On Your Pc

JTouch Mobile Extension for Joomla! User Guide

Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below.

FREE VERSION. Created by: Jason Nesbitt Mobile App Development Guide

SelectSurvey.NET Developers Manual

MAGENTO THEME SHOE STORE

This manual cannot be redistributed without permission from joomla-monster.com

Building A Very Simple Web Site

Self-Service Portal Implementation Guide

The easy way to a nice looking website design. By a total non-designer (Me!)

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Using your Drupal Website Book 1 - Drupal Basics

CREATE A CUSTOM THEME WEBSPHERE PORTAL

ACORD. Lync 2013 Web-app Install Guide

Application Note. Building a Website Using Dreamweaver without Programming. Nan Xia. MSU ECE 480 Team 5

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

Build it with Drupal 8

DEMO ONLY VERSION. Easy CramBible Lab M Magento Front End Developer Certification Exam. ** Single-user License **

Introducing our new Editor: Creator

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

SmallBiz Dynamic Theme User Guide

Dev01: Kentico CMS 7 Developer Essentials Syllabus

Dreamweaver and Fireworks MX Integration Brian Hogan

HOW TO CREATE THEME IN MAGENTO 2

Recreate your Newsletter Content and Layout within Informz (Workshop) Monica Capogna and Dan Reade. Exercise: Creating two types of Story Layouts

Develop a Native App (ios and Android) for a Drupal Website without Learning Objective-C or Java. Drupaldelphia 2014 By Joe Roberts

A set-up guide and general information to help you get the most out of your new theme.

Open Source Content Management System for content development: a comparative study

Joomla! template Blendvision v 1.0 Customization Manual

ultimo theme Update Guide Copyright Infortis All rights reserved

WP Popup Magic User Guide

Microsoft Expression Web

Digital Commons Design Customization Guide

PORTAL ADMINISTRATION

Elgg 1.8 Social Networking

Adobe Flex / Zend for Content Management

Joostrap RWD Bootstrap Template

Creating Accessible Word Forms. Contents. Introduction

Kentico CMS 5 Developer Training Syllabus

2011 ithemes Media LLC. All rights reserved in all media. May be shared with copyright and credit left intact

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Web Apps: Using web apps to build amazing functionality without programming. I Love Web Apps. They re Awesome.

SkaDate 9 Custom Template Creation Manual

RIT Message Center Compose and Send Messages

Web App Development Session 1 - Getting Started. Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola

Software Development Environment. Installation Guide

WP Popup Magic User Guide

Liferay Portal User Guide. Joseph Shum Alexander Chow

MASTER DRUPAL 7 MODULE DEVELOPMENT

ORACLE APPLICATION EXPRESS 5.0

Mistral Joomla Template

Building Your First Drupal 8 Site

BT CONTENT SHOWCASE. JOOMLA EXTENSION User guide Version 2.1. Copyright 2013 Bowthemes Inc.

Using your content management system EXPRESSIONENGINE CMS DOCUMENTATION UKONS

Responsive Web Design. birds of feather

Simple Tips to Improve Drupal Performance: No Coding Required. By Erik Webb, Senior Technical Consultant, Acquia

Base template development guide

Joomla! Actions Suite

Introduction to Tizen SDK Alpha. Taiho Choi Samsung Electronics

SellerDeck 2014 Responsive Design Guide

ImageNow Interact for Microsoft SharePoint Installation, Setup, and User Guide

Create a Google Site in DonsApp

BT MAGAZINE. JOOMLA 3.x TEMPLATE. Total User Guide Version 1.0. Copyright 2013 Bowthemes.com

Dashboard Builder TM for Microsoft Access

Quick Reference Guide: Enhancements and New Features in Internet Solutions V3.0

Google Docs Basics Website:

Creating a Web Page Using Rapid Web Designer (RWD) Computer Services Department SHERBURNE- EARLVILLE CSD

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Notes Client Tips & Tricks

Your Guide to the All New, Drag & Drop, Mobile-Responsive Builder

emarketing Manual- Creating a New

Distributing forms and compiling forms data

SchoolBooking SSO Integration Guide

Web Dashboard User Guide

Themes and Templates Manual FOR ADVANCED USERS

Working with RD Web Access in Windows Server 2012

HOW TO CREATE AND SEND AN EXACTTARGET TEMPLATE-BASED

Drupal and ArcGIS Yes, it can be done. Frank McLean Developer

Transcription:

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