Hi Guys,

I've noticed that when I change themes, accordion blocks stop appearing for all blocks, except the devel block.

I originally thought that this was because I had done something wrong when developing my theme, but I've noticed that it stops working for all themes that I have installed, except the one that I originally created the blocks on (Garland).

Swapping themes back to Garland makes the accordion blocks work again.

I'm trying to investigate this one myself, but have never developed for Drupal before, so don't count on me for a decent result :P

Cheers :)
Josh

Comments

pflame’s picture

Hi Josh,

Did you enable Devel themer module? This module will add extra divs around the elements to highlight the regions. If you enable this module, try switching themes by disabling the modules.

jfarry’s picture

Hi azriprajwala,

I didn't have the Devel themer modulle enabled, but I have removed (disabled and uninstalled) all parts of devel, plus cleared my cache and it has not changed :( Switching back to Garland still makes the accordion blocks work again though.

Thanks for such a quick reply :)

Josh

jfarry’s picture

Something to add to the confusion: Since selecting a different theme from Garland (Garland was my original theme that I enabled this module in), if I edit the existing blocks or make new ones, they now display properly in accordion with the newly selected theme. It's on a block-by-block basis though, as in, editing one block, doesn't fix all of them.

ramya_yanamaddi’s picture

Hi pyrhoe,

keep this line in your activated theme .info file will solve your issue.

engine = phptemplate

jfarry’s picture

Hi ramya_yanamaddi,

Unfortunately, the theme that I am now using, already has this in the .info, so does Pushbutton and Blue Marine, but the same thing still happens :(

Thank you for the suggestion though :)

pflame’s picture

Hi pyrhoe,

I fixed this problem of not applying theme to specific regions. Download the beta2 release and visit the admin/settings/accordion_blocks page and select the regions to which this effect should apply and save. I hope you don't face any problems with the new version of this module.