New theme vs. sub-theme of OP default

Events happening in the community are now at Drupal community events on www.drupal.org.
fastballweb's picture

Reading through the OP documentation on theming, I notice a strong push towards creating a sub-theme. It seems to me, though, that the push comes from an assumption that you'll be keeping your site rather close to the stock OP functionality and look/feel.

If that's not the case, are there any reasons that it may be a bad idea to create a separate theme for OP? I have a project that will probably not ever be using a good deal of the functionality OP comes with, including a lot of the content types. Beyond that, it already has an HTML layout that was not in any way based on OP functionality or theme conventions.

That all tells me that a new theme would be most appropriate (albeit one that uses or at least is based on the OP default template files in many cases). But because of the strong push in the docs, I thought I'd throw the question out there. Thanks!

Comments

Hi, I have been working in

betovarg's picture

Hi,

I have been working in several sites based on OP for about 6 months. I know the documentation is scarce on the subject, because i have come to hate that as well. I started my first subtheme while I was understanding the way drupal handles stuff, and I had that very same question. The first theme was slow, and had a lot of stylesheets loaded that didnt do anything, because I did some things wrong:

-My theme looked nothing like OP's default, but I still used their default structure.
-I didnt copy all the stylesheets in my theme, so I had to override everything, that led me to have duplicate styles all over the place.

What I did in my next templating quests (lol), is that I copied all the files from their theme in my theme, except for those that I knew I wasnt going to modify (cuz i didnt have the need). If you have a basics.css in your theme, OP will load that instead of the default from OP's theme. The thing in creating a new theme from scratch is that you have to go through their checklist to make it work correctly (why go through the hassle when you can just modify theirs?).

One thing that I dislike is the fact that OP loads openpublish_menu.js even if you're not using the print $primary_links, which I think it sucks. Im not using it and its still being loaded. Besides that, my themes now look nothing like OP's and function correctly.

Share

Russell Mann's picture

Care to share some links? I'm utilizing OP for stuff completely not related to Gov, so I'm getting ready to tackle the theme issue. Would love to see what can be done.

Sure, this one is a news site

betovarg's picture

Sure, this one is a news site with a heavily changed OP subtheme
www.monumental.co.cr

the site was released 2 days ago, so we're pulling knobs in performance areas. Please obviate ads since we didnt put our hands into that. I'm working in some more, will post them when they see light.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: