Drupal Redesign: Themes and Sub-themes

This post is part of a series about our implementation of Drupal during the redesign of www.museumofplay.org and the launch of the Strong. Read the first post here.

Theming is a difficult, sometimes frustrating part of Drupal. There's enough style sheets, .tpl.php files, hook_preprocess functions, and inheritance and overriding going on to make your head spin. The Zen theme even has an issue addressing a IE limitation of 31 style sheets. (How many style sheets do you need??) For the Strong, this was definitely a "fun" and unique challenge that involved a lot of problem solving.

First up was building the HTML. We worked with Lichtenstein + Associates to create the site design for the Strong and its 5 Play Partners. The 17 design comps were translated into HTML templates. From there was the task of converting the HTML templates to a Drupal theme.

This was no simple task. We have a whopping 6 websites, and they have many common features.

The Strong National Museum of Play International Center for the History of Electronic Games
National Toy Hall of Fame Brian Sutton-Smith Library and Archives of Play

American Journal of Play

As you can see from the screenshots, the basic page structure, the tabs styles, the left sidebar, header, and footers are all very similar. Rather than repeating my work 6 times (and having to change 6 themes if I made a revision), I explored Drupal's sub-theming system.

Sub-theming is an incredibly powerful system. You can specify one theme as a base theme, and other themes as sub-themes of the base theme. The sub-themes inherit all the functions, templates, and styles of the base theme, which can then be customized and overrided per theme.

This was a perfect fit for the Strong. The Strong is the base theme, and the other play partner sites are sub-themes of the Strong theme. I started with the fantastic Zen project. I could have made the Strong a sub-theme of Zen, but multiple inheritance made me uncomfortable. (It is possible, though.) So, I made the Strong theme a copy of Zen 6-x.2-x, and modified accordingly. It seemed cleaner that way, especially with a lot of hook_preprocess_*() stuff going on.

thestrong/style.css was the big honkin' style sheet, which is inherited by every theme, as well as html-elements.css and some others. This included the basic page structure. Each site has its own overrides, and they sit in its own style sheet. For example thestrong/thestrong.css has customizations unique to the Strong. I tried to select the features that were most common, and make them the default.

So, in the end, the structure of the themes was thusly (roughly):

Stay tuned for a future post about my techniques for building some of these features, like navigation tabs, gradient pattern backgrounds, and overlapping angles.

Comments

marcos's picture

Thanks for sharing these drupal themes! You can customize your drupal website by applying these themes. Before downloading these themes, want to know whether these drupal themes and subthemes are compatible with Druapl 6?
http://www.windows8installation.com

http://assistance-serrurier15min-24h24.fr's picture

The subject you've composed is most likely a sticky subject. I admire your post and anticipate more. teds woodworking reviews

ram14's picture

Year 2013 has been quite eventful. SRSG also witnessed events and evolved in terms of business verticals, technologies, people and processes.
Apple product reseller in Kolkata
Audio mixers dealers
Digital Asset Management solution
ipad dealers in Mumbai

hotels and resort's picture

If you are a business class executive who cannot do without business desk facilities in their hotel can also get convenient accommodation in this area. There are some hotels offering internet and communication facilities too beside television, air-conditions, and other basic amenities. http://www.hotelsandresort.com/

http://assistance-serrurier15min-24h24.fr's picture

It is the little changes that roll out the biggest improvements. Much obliged concerning imparting! parachute pants

Painter and Decorator Edinburgh's picture

I speak to your site exceed for my needs. I propeller misrepresentation a large portion of them and got a great deal from them Stuff from you man. blutdruck senken

Painter and Decorator Edinburgh's picture

much appreciated alot and trust that you will post more site that are identified with this site. Painter and Decorator Edinburgh

Painter and Decorator Edinburgh's picture

You have offered incredible data in your post and a few things I have not seen in other substance I have perused by my companions plenty of information

celen's picture

Extremely decent post and right to the point. I am not certain if this is really the best place to ask however do you parents have any ideea where to contract some expert scholars. nintendoblogger.com

embossitworld's picture

s. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. embossitworld

wallens's picture

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
pou
hill climb racing

Painter and Decorator Edinburgh's picture

I touch truly exact adaptation these articles I closefisted there are scholars that can make good stuff. RezforHire's

celen's picture

I caught your post. I don't normally post in web journals however your online journal constrained me to. Amazing work! Much thanks to you for imparting! http://www.amazon.com/Moringa-Tea-100-Pure-Oleifera/dp/B008CG2ELC

wallens's picture

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you.
showbiz news

Image Consultant's picture

Image Group is a Sydney based image Professionals Company. We offer best Individual Marketing Picture Talking to Services, personal branding training in globally. For more about service details visit us! imagegroup.com.au

hotels and resort's picture

Business communication has evolved greatly throughout centuries and continues to change at fast speeds. Relaying messages in a professional setting are vital to the production and life of an organization. Business communication plays a role in day-to-day activities at work, business trends may be observed, and message types may vary as a result from business communication trends. http://www.afterbusinesscommunity.com/

clash of clans gemmes illimité's picture

Incredible article, it was exceptionally helpufl! I simply began in this and I'm improving! Cheers, keep doing awesome! clash of clans gemmes illimité

Painter and Decorator Edinburgh's picture

I am composing an examination paper and gathering data on this theme. btv solo price

celen's picture

Much appreciated such a great amount for this! I haven't been this excited by a blog entry for a drawn out stretch of time! scooterjudge.com

celen's picture
celen's picture
celen's picture

I esteem the article. Thankful. Took personal time to peruse all the remarks, however I truly appreciated the article. desatrancos baratos ajalvir

hotels and resort's picture

In general, everything diminishes with age. Both the pharmacodynamic as well as the pharmacokinetic character changes with time. With aging inherent variability in physiologic differences becomes accentuated. Pharmacodynamic responses are blunted, ability to eliminate drugs is diminished and sensitivity to the toxic effects of drugs is increased. http://www.dlshealthcareconsulting.com/

hotels and resort's picture

That is a code that really should be noted by any man or lady who is thinking about selling the a few of the light-weight plastic boards from Australia. He or she ought to set aside time to check out pertaining to the most effective and worst places to sell penny skateboards. http://www.parkpenny.com/

meck's picture

insecure in relationships

Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.

dogtrainingphoenix.net's picture

Oftentimes, your the next door neighbor's children have an interest in taking good care of your domestic pets. Yet this aren't the best option, as kids is often reckless plus ignore primary needs connected with an animal Due to this, protection of your your health of a person's pets really should be handed through in given professionals, as adequate course calmness as well as serenity with mind when you're not out there. dogtrainingphoenix.net

dogtrainingphoenix.net's picture

Consider holding the animal differently. Most household owners find this Pedi Paws is rather user-friendly. You might enable a person's animal to lay on your lap since you cut its nails. This creates an appropriate position for your personal pet pet dog while its nails think you are trimmed. If this can not work, take into consideration turning. You seek your animal or feline that they are comfy, nonetheless well properly secured. kaidog.net

celen's picture

I like your articles, your article is exceptionally appealing, let I can comprehend a considerable measure of truth, took in a ton of information. crystal X

dogtrainingphoenix.net's picture

Employment development, on the flip side, is often known as more on the big graphic view. While advice may perhaps be something you actually seek in order to reach an instantaneous need, career progression is an element that unfolds over time. The thesaurus definition with development, when noted by way of Webster is definitely, "the respond, process, or reaction of developing. collegecreditcareersnetwork.net

dogtrainingphoenix.net's picture

Life-long employment and discussing one manager our full working life is actually a thing with past. With these current fast-paced world economy, careers plus industries find a way to change plus come plus go suddenly. careerfastrak.net

http://assistance-serrurier15min-24h24.fr's picture

Trusting that you will keep posting an article having a valuable data. This is a decent story. taner tozan

hardwaresegment.com's picture

Within our traditions there is adapted this approach engineering that one can get for everyone. We all of the possess link with the internet with this computer platforms, notebook pc systems, clever mobile phone along by means of tools that men could select cooperate with. hardwaresegment.com

celen's picture
dogtrainingphoenix.net's picture

So that you can make every decision with regards to your career it's important to assess you first. Because inherent skill, skills plus values will be most helpful things make employment choices. You apply self examination tools to paraphrase we might say work test for your self diagnosis test. A employment test helps you making decisions for your personal career. You'll find it creates the proper list with occupation plus gathers perfect information for your personal career. constructioncareeraustin.net

dogtrainingphoenix.net's picture

Either career information and employment development are needed components actually need to run personal employment exploration. Understanding all these foundational stipulations will enable you to get what you require, and along at the right time frame. usa-technology.net

Pauli Denise16's picture

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
http://hyperglycemiaabout.com/my-observation-about-nutra-tosterone-is-it...

Nutra Tosterone's picture

Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the Good post, adding it to my blog now, thanks,

LifeForce T-2000's picture

We are a group of volunteers and opening a new scheme in our community. Your site provided us with valuable info to work on. Youve done an impressive job and our entire community will be thankful to you.
http://www.healthcaresup.com/is-lifeforce-t-2000-a-scam-or-fake/

http://assistance-serrurier15min-24h24.fr's picture

i will ask for you to post some more articles on same point!!! It is exceptionally pleasant to see this website and its truly educational for the perusers. http://assistance-serrurier15min-24h24.fr

Wynn's picture

These all services are very important and very helpful to all the blog content providers. So everyone will happy to utilizing these educational steps proofreading services online and other knowledgeable writing services are all.

Obat Penyakit Paru-Paru Obstruktif Kronis's picture

I am very appreciative to all those who have made the article even though it was only a little. Let's continue with your work, I am waiting for the latest articles.

Obat Penyakit Paru-Paru Obstruktif Kronis

Advantage Grand Canyon's picture

This was a truly surprising column. Acknowledge you for supplying this info.Advantage Grand Canyon

Advantage Grand Canyon's picture

I truly like the way you are offering the extraordinary tackle this subject. Keep it up! I simply say what an easing to discover somebody who really hear what they are saying on the web. assainistar.fr

Advantage Grand Canyon's picture

This is a decent blog. This is an incredible motivating article.i am practically satisfied with your great work.you put truly accommodating data. Keep it up. hug you nurse!

aliceseo's picture

I am sure this post has helped me save many hours of browsing other related posts just to find what I was looking for. Many thanks! Hose Assemblies

Advantage Grand Canyon's picture

I needed to leave a little remark to help you and wish you a decent continuation. Wishing you the good luck for all your blogging endeavors. Perm Yaki

Advantage Grand Canyon's picture

Great occupation! You folks do an extraordinary blog, and have some incredible substance. Keep doing awesome. http://www.areesecelticastrology.com/horoscope-2015-monthly-taurus/

Anupama Rao's picture

Drupal Redesign: Themes and Sub-themes has unparalleled technologies in the world.

proofreading services onlines
www.papertrue.com

Jackson's picture

Introducing the Happy Easter day in 2015 day of 2015. Happy Easter to all.

Pages

Add new comment