I'm still trying to understand how all the pieces of Omega work, so please bear with me if this is a dumb question.

I wanted to create a custom Profile2 template in my Omega subtheme, which was copied from the omega-html5 starterkit. I copied the profile2.tpl.php that ships with that module into the templates directory of my subtheme. I made a minor change to the template, cleared my caches, and expected to see my changes, but no luck.

I made changes to the version that ships with Profile2, and verified that these changes worked. I moved the template from the templates directory of my subtheme to the top level, and cleared the caches. No luck there.

As a last-ditch test, I moved the template from my subtheme into omega/templates, and cleared the caches. I saw a warning that the template file couldn't be found, so I copied it back into the top level of my subtheme, which finally worked.

I'm not sure if this is how Omega is supposed to behave (I'm guessing no), or where I messed up.

Any guidance would be greatly appreciated!

Comments

tahiticlic’s picture

Same here, custom block template block.tpl.php has no effect.

tahiticlic’s picture

Well, I had to put block.tpl.php directly in templates, I can't put it in templates/blocks for instance

marcoka’s picture

so you say you can not put your block.php.tpl into subthemeName/templates/block.tpl.php

Anonymous’s picture

Consider using delta & context (http://drupal.org/node/1298616). Omega+Delta+Context makes the need for tpl.php's virtually null. See http://drupal.org/node/1341788. Omega is different from other base themes in this way. It might take a minute to reset your thinking if you're used to theming with tpl's but if you give the approach a chance you may find it to your liking.

Cellar Door’s picture

Status: Active » Closed (works as designed)

Was Delta/Context able to assist in this? Right now .tpl files need to be placed directly into the templates directory to be picked up by the theme.

As banghouse said though - Omega can do quite a bit through the extension of Delta and decreases greatly the number of templates necessary. It is recommended to try using this as a primary way to alter theme settings and output but in some cases if a tpl is necessary the templates folder is where they should be placed without any subdirectories.