I'm trying to display a photo as background image for a Drupal 7.7 website.
After reading a doc on subthemes, I have created a directory called "pasture" in the same directory where "bartik" resides (i.e. in ~/public_html/drupal/themes/pasture).
- I have created the pasture.info file.
name = pasture
base theme = Bartik
stylesheets[all][] = pasture.css
files[] = pasture.jpg
core = 7.x
- I have created the pasture.css file.
#header {
background:url(/drupal/themes/pasture/pasture.jpg) top left no-repeat;
}
- I have saved a public domain image as pasture.jpg. The image is the following one.
Unfortunately, my site appears completely broken, after I activate that theme, and I see numerous warnings:
Notice: Undefined index: Bartik in method drupal_theme_initialize() (line 98 inf file /usr/www/users/simplex/drupal/includes/theme.inc). Notice: Trying to get property of non-object in method phptemplate_init() (line 12 in file /usr/www/users/simplex/drupal/themes/engines/phptemplate/phptemplate.engine).