Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've set up a virtual site and have gotten the theme changed successfully. My problem is that the blocks do no appear on any of the pages I've set by my condition to display the other theme. I had to use the variables tab to switch the theme, because the option wasn't available in the Theme tab - I only see skip this feature (I'm using a Zen sub-theme). Do I need to add more variables to get the blocks to display? If so, where do I find the proper variable names to use? My theme variables are
theme_default=scic
admin_theme=garland
Thanks for any help you can provide.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1_define_conditions.jpg | 70.27 KB | kndr |
#1 | 2_define_not_block_condition.jpg | 76.27 KB | kndr |
#1 | 3_define_not_themes_condition.jpg | 79.2 KB | kndr |
#1 | 4_define_variables.jpg | 43.55 KB | kndr |
Comments
Comment #1
kndrTry this (see attached pictures):
1) define two conditions: "NOT admin/build/block" and "NOT admin/build/themes",
2) fill php statements for defined conditions,
3) set variables: "theme_default" and "custom_theme" in "Variables" section (both to your default theme),
4) change weight of virtual_site.module to -1 (use utility module http://drupal.org/project/util or change directly in {system} table).
Comment #2
AdamPS CreditAttribution: AdamPS commentedTrue, if you use the variables module to set the theme, the change happens too late.
The current version of this module has a sub-module virtual_site_theme that solves this problem.