Theming

  • Improve your Drupal theme markup with body classes

    Since Drupal 6, a lot of the detailed markup as found in the excellent Zen theme framework has made its way into the default Drupal markup. More details about this feature can be found here https://drupal.org/node/163723 To use this feature for your theme just insert the variable $body_classes into your tpl files body opening tag…

    Read More

  • How to create and use a Drupal template (tpl) file

    Template files are used to overwrite the core Drupal output (or the output of a module that overwrites the core Drupal output). This can be for example useful if the layout of a particular content type, page, block or view can’t be easily fixed by a stylesheet. With a tpl file you can completely overwrite…

    Read More

  • How to add a new widget area to your WordPress theme

    Most WordPress Themes come by default with some pre-defined areas where you can drop your widgets in. But often this is not enough and you need to add additional areas, for example for advertising space or other features. This is how to do it: First Step: Add widget Area to Theme In the index.php file…

    Read More

  • Add a custom menu in Drupal 6

    Basic Menu There are three default menus available in a fresh Drupal installation. Primary links – Often used to present the main sections of the website, for example as tabs along the top Secondary links – Often used for pages like legal notices and contact details along the bottom Navigation – Often only visible for…

    Read More