oc drupal. steps to creating a subtheme download base theme to “site/all/themes” folder notice:...
TRANSCRIPT
![Page 1: OC 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](https://reader035.vdocument.in/reader035/viewer/2022072016/56649eec5503460f94bfd409/html5/thumbnails/1.jpg)
INTRO TO SUB-THEMINGOC Drupal
![Page 2: OC 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](https://reader035.vdocument.in/reader035/viewer/2022072016/56649eec5503460f94bfd409/html5/thumbnails/2.jpg)
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…..
![Page 3: OC 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](https://reader035.vdocument.in/reader035/viewer/2022072016/56649eec5503460f94bfd409/html5/thumbnails/3.jpg)
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.
![Page 4: OC 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](https://reader035.vdocument.in/reader035/viewer/2022072016/56649eec5503460f94bfd409/html5/thumbnails/4.jpg)
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
![Page 5: OC 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](https://reader035.vdocument.in/reader035/viewer/2022072016/56649eec5503460f94bfd409/html5/thumbnails/5.jpg)
Template_suggestions ( cont. )Please see : http://drupal.org/node/1089656
Put template files in “sites/all/themes/[yourtheme]/templates”