By hinckley39 on
How do I modify the php templates for the stark theme in drupal 7? There are no template folders. That confuses me greatly...
How do I modify the php templates for the stark theme in drupal 7? There are no template folders. That confuses me greatly...
Comments
Documentation
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:
Yes, thank you
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?
Here is a video explaining
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
-= Gerrit Brands
The documentation
If you follow the documentation link that I provided, the answer to your question is spelled out in detail.
Wow, thank you!
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! :)
Core modules contain tpl files used by the Stark theme
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...:
.. and this "node" module file:
and this "field" module file:
(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.