The default Tapestry style seems to be Gerber Daisey. We change it to be Modern Office, for some reason something happens and it changes back to Gerber Daisey (without us explicitly changing the style in the theme).

My question is: Is there a file somewhere where we can make the default Modern Office as opposed to Gerber Daisey, so when it flips back, it at least flips to the style we want?

Comments

roopletheme’s picture

Not sure why the style would arbitrarily change, but that's not a good sign... :)

To change the default style, you'll need to change a few things in the theme. In each instance, you'll want to replace the string "gerberdaisy" with the string "modoffice":

In settings.php, you'll want to change line 10, which defines the default style for the ThemeSettingsAPI:

  $defaults = array(
    'tapestry_style' => 'gerberdaisy',

and you'll want to change the analogous code on line 10 of template.php:

  $defaults = array(
    'tapestry_style' => 'gerberdaisy',

There's a routine on line 76 of template.php that defines the style if the ThemeSettingsAPI call fails:

function get_tapestry_style() {
  $style = theme_get_setting('tapestry_style');
  if (!$style)
  {
    $style = 'gerberdaisy';
  }
     .
     .
     .
  return $style;
}

And there's a similar routine on line 535 of page.tpl.php that ensures the right footer image is used:

  $style = theme_get_setting('tapestry_style');
  if (!$style)
  {
     $style = 'gerberdaisy';
  }
somebodysysop’s picture

Status: Active » Fixed

That should do it. Thanks!

roopletheme’s picture

Status: Fixed » Closed (fixed)