Hey,
I'm relatively new to Drupal, I've probably been working with it for about under 4 months now, and just last week I started building my own theme. I have a real problem at the moment with my template overrides not working.
For example I want to change the look of the ajax cart for ubercart, so I made a block-uc_ajax_cart-0.tpl.php file and changed how I wanted it to look, but the changes wont show up. I have made sure that the registry is being rebuilt (I'm using devel and have rebuild on every load set). The weird thing is that if I change the name to block.tpl.php the changes take effect right away. I have the same problem with trying to edit the node-product.tpl.php, the override wont apply, but when I rename it to node.tpl.php they do. I'm thinking that I'm either putting these files in the wrong place, or I have something set wrong.
BTW I'm running this locally on xampp so I cant really link to anything at the moment
Any help is greatly appreciated, Thanks!

Comments

Jeff Burnz’s picture

Main thing is to have the core template in the directory as the suggestions, so you need block.tpl.php and block-xxx.tpl.php in the same folder.

Second thing is you need to clear cache data on the performance settings page when adding new templates.

BTW, what theme are you using.

Bizarro’s picture

all the template files are in the same root directory of the theme and I've cleared the cache a ton. The theme is my own that I am building from scratch.

Bizarro’s picture

Nevermind...I got it working apparently I cant override block-blabla.tpl.php without there being a block.tpl.php file in my theme. I got the idea to try this when you said

so you need block.tpl.php and block-xxx.tpl.php in the same folder.

Thanks (i hope i got the right idea...yes?)