[themes] How to know the path of a tpl.php file

Cory Gilliam imaaxa at gmail.com
Wed Jun 30 17:33:57 UTC 2010


In your directory tree, goto sites/all/.  In here you should have created a
folder named modules and one named themes.  Inside the themes folder, go
into the folder of the theme you are using.  The 'node.tpl.php' file should
be in there.

If you have not made these folders, go ahead and do it.  You can download a
theme from http://drupal.org/project/Themes, or copy one of the core themes
from the themes folder.  Then go to the admin page, under Site Build click
themes.  Change to a different theme, any theme will do, it will be changed
again, then click save.  Then select the theme you want to use, (the new
theme or core theme from the site/all/theme folder), and save.  Click the
configure, and fix all your setting in here.

Now you are using the theme that is in you site/all/theme folder

To modify the 'node.tpl.php' of just that page, from your site root, go into
modules/node and copy the 'node.tpl.php' and paste it into you theme folder
in the site/all/theme/{your_theme} folder and name it using the file name
that theme developer gave you.  Modify the code as needed.

Make sure when you start a *.tpl.php that you try to find one to copy from
the modules/ folder in the root.  These are more likely to not to cause
problems.  Using theme *.tpl.php files could cause issues.

If you need more themeing help, www.lynda.com has a Drupal Themeing title
that is very good.  Also www.mustardseedmedia.com/podcast is also good.

Hope that helps,

Cory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20100630/eacbd807/attachment.html 


More information about the themes mailing list