Tag: drupal-theming

58 votes
8 answers
1.5K views
How do I get the path of the current drupal theme?

The Drupal API has drupal_get_path($type, $name) which will give the path of any particular theme or module.

avatar
Elicia
0 1 0 9
asked 07 September, 2021
53 votes
10 answers
1.6K views
Adding a class to "body"

How can I modify or pre-process the <body> tag to add the class body? I don't want to create a whol

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
1.6K views
How do I use theme preprocessor functions for my own templates?

I have several .tpl.php files for nodes, CCK fields, and Views theming. These template files have a lot of log

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
63 votes
15 answers
1.4K views
How to insert a block into a node or template in Drupal 7?

In Drupal 6, it was easy to insert a block into a template with the following code: $block = module_invoke(&a

avatar
Royal
0 1 0 9
asked 07 September, 2021
64 votes
10 answers
1.6K views
How to quickly theme a view?

I've defined a view with the CCK and View 2 modules. I would like to quickly define a template specific t

avatar
Arline
0 1 0 9
asked 07 September, 2021