I recently upgraded a project from Panels 3.0-beta2 to 3.0, and in the process, the CSS classes for headers and content have changed. What used to be <h2 class="title"> is now <h2 class="pane-title">, and what used to be <div class="content"> is now <div class="pane-content">
This broke my site theme after the upgrade without any warning. While I understand that semantically, it's better to use pane-title, it would have been good to know about this change before upgrading. I can update the stylesheets, but it would be good to have the option to set what CSS classes are assigned to those HTML elements, in case the code couldn't be updated quick enough.
This seems like a significant change from a beta to a final release. Is it documented anywhere?
Comments
Comment #1
merlinofchaos commentedI thought it was documented, but apparently it didn't make it into the release notes. That is my error. That said, you were upgrading from a beta version, and these things do change.
It is easily settable. Override theme_panes_pane and you will have total control over the classes that are set for panes. In the newest Panels -dev, this is now a template to make that easier, similar to block.tpl.php -- but in 3.0 it's still an older style theme function.
Comment #2
merlinofchaos commentedNowadays it is to override the panels-pane.tpl.php template, which is even easier.
This needs to be documented.
Comment #3
Letharion commentedNow documented in the custom-styling file in the advanced help.