How to use a custom block template when the block is embedded in a panel pane? I have a block that I have templated and want to use in and out of a panel layout in various parts of my site.

So to template the block I opted to install the block_machine_name module which gives a good anchor point for the template so the block id is not relied upon (as this changes between my dev and prod sites).

Then I theme the block and it works just great using a template name like block--sweet-name.tpl.php

Then I also use the block in a panels layout and things start to go wrong.
The block template is now ignored.

So I am trying to find a way to get panels embedded block to respect block templates.

Is this possible?
If you need to use the block template in panels, make sure you choose the style from the panels option to be "Systems block".



This lets you use block--sweet-name.tpl.php.