creative insites header

Snippets

Load a custom page-xxxx.tpl.php file for Drupal

January 5th, 2012

This snippet is so you can override page.tpl.php and create a custom layout for page-some-content-type.tpl.php and it will override using the page.tpl.php template.

Add this code between the head tags in your page.tpl.php file.

Add unique class to menu items (Drupal 6)

December 22nd, 2011

In my ever increasing quest to make a more user friendly Drupal environment for my clients. I have been trying to figure out how to add a unique class to menu items. Recently I came across this snippet on drupal.org.

In order to use this snippet, you must place this code in your theme's template.php file.

Subscribe to RSS - Snippets