Hi all,
After installing a site and using Corolla (or a derived subtheme), the responsive features of the site do not work until after we go to the theme settings page and click "save settings" - even though we have not changed anything there. It looks like clicking save causes the following variables to get set:
corolla_mediaqueries_path
coralla_mediaqueries_css
theme_corolla_settings
as well as some stuff into the cache_bootstrap, cache_menu, file_managed, cache_update table etc.
Should these get set during theme_enable()? - at any rate, it's quick to fix manually. However, we are rolling out hundreds of sites programmatically via drush, so we need to figure out what to call during site install to make the responsive bits work.
Best, and thanks,
mjp
Comments
Comment #1
Jeff Burnz commentedIt kind of works like color module does, using a custom submit function, taking the form values and building the layout, which is then written to public//at-css/yourthemescssfile.css, then loaded back via drupal_add_css(). Unlike color module this file does not exist before hand, so thats one idea, to include a responsive layout stylesheet in the theme that matches the default media queries and layouts, and as soon as the submit function is fired once we unset it and take the new one from public//.
Ideas and patches welcome.