How do I modify the php templates for the stark theme in drupal 7? There are no template folders. That confuses me greatly...

Comments

yelvington’s picture

Begin by reading and understanding the documentation on overriding themable output.

Stark demonstrates how unmolested Drupal behaves. It's not meant for you to modify anything; it shows you the basis on which you may build. Note the contents of stark.info:

; $Id: stark.info,v 1.4 2010/11/07 00:27:20 dries Exp $
name = Stark
description = This theme demonstrates Drupal's default HTML markup and CSS styles. To learn how to build your own theme and override Drupal's default code, see the <a href="http://drupal.org/theme-guide">Theming Guide</a>.
hinckley39’s picture

However, all Theming info for Drupal 7 is either non-existant or has been removed. Also, I thought Stark was meant to be able to make a copy and build on the basic framework from there. Maybe I should rephrase my question as "How can I modify the php templates of my copy of the Stark theme." I bought Jacob Redding's book and I'm finding it very aggravating to follow, considering how many things have changed since it was published. Mr. Redding is more than helpful, answering my personal e-mails directly. But, how many times can I bug him? Is there a them that's meant as a skeleton and easy to build a new theme from?

gbrands’s picture

Here is a video explaining Drupal 7 theming. It is only 10 minutes long but should be able to get you on the right track. Also, read the comments on the page as well for additional information.
http://lin-clark.com/blog/intro-drupal-7-theming-fields-and-nodes-templates

And here is a list of ways in which to modify the templates:
http://drupal.org/theme-guide/6-7

As far as 'starter' themes are concerned, many designers like Zen. I prefer Fusion. Feel free to browse the themes for some other starter themes, or just click here

yelvington’s picture

If you follow the documentation link that I provided, the answer to your question is spelled out in detail.

hinckley39’s picture

I'm always impressed at how helpful people are. Thanks gbrands and yelvington for the great advice. It is so helpful! :) It really made my day and took a couple hours of research off of my night. Thanks and best wishes to you in everything you do! :)

rowanprice’s picture

Be aware that the reason Stark is able to be so stark is that it relies on several theme files supplied by Drupal core modules. Chief among them are the following "system" module files...:

modules/system/html.tpl.php
modules/system/region.tpl.php
modules/system/page.tpl.php

.. and this "node" module file:

modules/node/node.tpl.php

and this "field" module file:

modules/field/theme/field.tpl.php

(There are a few others, but those are the main ones)

"How can I modify the php templates of my copy of the Stark theme."

Copy the files listed above into your theme directory (e.g. 'stark_copy') and modify them.