HI all,

I need a quick tip. I'm trying to replace the main zen page.tpl.php with my own custom one in my subtheme, but I guess I'm not sure quite how to do this. Instructions simply say to copy it to my subtheme's folder, but this does not seem to work. Is there another step?

Any help would be great.

beren

Comments

bonaparte’s picture

1. Give a different name to your sub-theme folder
2. Enable your sub-theme, example.com?q=admin/build/themes

Disclaimer: I have not tested this. Hopefully, it works.

Good luck.
--------------------
Sudheer. S
Binary Vibes Information Technologies Pvt. Ltd.
Learn and and help others learn Linux, Apache, MySQL and PHP
Avail commercial Drupal services

berenErchamion’s picture

HI Sudheer -

I already have a working subtheme. What I was asking was if I wanted to have a custom page template and not use the base theme's, how do I do this?

When I copy page.tpl.php into my subtheme's folder it does not get loaded. I suspect there must be some way to tell the theme to use the copy in my subtheme rather than the one in the base folder, but I'm not sure how. Perhaps this is not possible.

beren erchamion
http://tarnaeluin.wordpress.com/

Jeff Burnz’s picture

Just thinking out loud, have you enabled your subtheme and set it as default?

aaronp’s picture

I just set up a subtheme earlier. Copying the page.tpl.php from the main zen theme folder to the subtheme folder *should* work. Might be playing Captain Obvious here, but have you made any changes to the page.tpl.php file in your subtheme folder? If not, it's going to look the same as pages being themed by the page.tpl.php file in the main zen folder.

zoon_unit’s picture

You must search and replace the master theme name with your subtheme name in the template.

southweb’s picture

I am having the same problem. Still using modules/system/theme

Have cleared cache and reloaded theme etc.

There is no reference to theme in page.tpl.php that I can see??

thx.

3goose’s picture

That's all you have to do, but the changes won't be visible until you clear your cache.

from Jeff Eaton: "the admin/settings/performance page has a big CLEAR CACHED DATA button that will rebuild menus, clear cache tables, reset the CSS and JS caches, and rebuild the theme registry in one step."

The button is at the bottom of the page. Once your caches have been cleared, your sub-theme templates should work.

dvessel’s picture

bingo!

joon park

Jeff Burnz’s picture

neeraj.cms’s picture

Hi

If you make any changes in the existing zen theme it will be considered as core hacking. It will not be according to Drupal standards and best practices.

http://drupal.org/node/226507 this URL will guide you about "How to build your own Zen sub-theme" in Drupal 6.

Regards
Neeraj