1 / 5

Intro to sub-theming

OC Drupal. Intro to sub-theming. 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”

bary
Download Presentation

Intro to sub-theming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OC Drupal Intro to sub-theming

  2. 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…..

  3. 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.

  4. 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

  5. Template_suggestions ( cont. )Please see : http://drupal.org/node/1089656 • Put template files in “sites/all/themes/[yourtheme]/templates”

More Related