O'Reilly logo

Responsive Theming for Drupal by Mike Crittenden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preface

What You’ll Find Here

This book will guide you through the basics of proper Drupal 7 theming. This includes things like:

  • An introduction to responsive web design (RWD).
  • An introduction to Drupal theming as it relates to RWD.
  • A discussion of the “what” and the “why” of Drupal-based themes and subthemes.
  • A comparison of a few popular base themes (Zen, Omega, and Aurora).
  • Step-by-step instructions for creating custom subthemes based on those base themes.
  • Some common gotchas, tips, and tricks for building and theming responsive Drupal sites.
  • Pointers to more information and next steps that pick up where this book leaves off.

Throughout the book, we’ll use as an example a very fake-sounding online business that sells turnip sauce and desperately needs your help.

Intended Audience

This book makes a few assumptions about the reader:

  • You should have at least a very basic understanding of Drupal. If you aren’t sure what a “node” is, for example, you’ll want to learn a bit more about Drupal before diving into this book.
  • You should feel comfortable using the command line to run pre-written commands. You won’t need enough command-line know-how to write your own commands or do anything tricky, but you will need to run them and read the output.
  • You should know and understand HTML and CSS fairly well. If you aren’t sure of the difference between a div and a span or between #header and .header, for example, you’ll want to study up a bit on that first.
  • You should want to become a better, more efficient, more knowledgeable Drupal themer. If you just want to get a site built and out the door and aren’t interested in bettering yourself, this book might offer a bit too much detail.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Tip

This element signifies a tip or suggestion.

Note

This element signifies a general note.

Warning

This element indicates a warning or caution.

Using Code Examples

This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Responsive Theming for Drupal by Mike Crittenden (O’Reilly). Copyright 2014 Mike Crittenden, 978-1-449-37331-3.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online

Note

Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business.

Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at http://oreil.ly/responsive-drupal.

To comment or ask technical questions about this book, send email to .

For more information about our books, courses, conferences, and news, see our website at http://www.oreilly.com.

Find us on Facebook: http://facebook.com/oreilly

Follow us on Twitter: http://twitter.com/oreillymedia

Watch us on YouTube: http://www.youtube.com/oreillymedia

Acknowledgments

Many thanks to the following technical reviewers:

  • Dani Nordin
  • Michael Ross
  • Rob Decker

And a huge thanks to Mike Granger for the thorough revisions and suggestions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required