OC Drupal. Steps to creating a subTheme Download base theme to “site/all/themes” folder notice:...
-
Upload
colin-barker -
Category
Documents
-
view
223 -
download
1
Transcript of OC Drupal. Steps to creating a subTheme Download base theme to “site/all/themes” folder notice:...
INTRO TO SUB-THEMINGOC Drupal
Steps to creating a subTheme
• Download base theme to “site/all/themes” folder
• notice: D7 will allow you to install theme from
module interface
• Copy subtheme template out of base theme
folder into “sites/all/themes”
• Change subtheme folder name and .info
filename to match your theme name.
• Show example…..
Template_suggestionsPlease see : http://drupal.org/node/1089656
CODE! (php to be exact) What is a template_suggestion?
An override of a base theme structure When should I use a template
suggestion?When you want to change a hard
coded layout of the base theme, i.e. change the order of the DOM layout.
Template_suggestions ( cont. )Please see : http://drupal.org/node/1089656
Overriding a theme element
requires finding the right file to
copy and edit.
Download Devel_themer module
Page.tpl.php – most common file
edited from a base theme
Node—[content-type].tpl.php
Template_suggestions ( cont. )Please see : http://drupal.org/node/1089656
Put template files in “sites/all/themes/[yourtheme]/templates”