Subthemes in Drupal 6 make it much easier to maintain custom variations of a theme. I created a subtheme based on Nitobe today and everything worked except for the header images, which continued to be picked up from the Nitobe headers folder.

Changing the function used to discover the theme's path from drupal_get_path('theme', 'nitobe') to path_to_theme() fixes the issue and causes the images to be pulled from a headers folder located in the subtheme directory.

The attached patch takes it a hair further by first checking to see if path_to_theme()/headers exists, and if not falling back on the original call to drupal_get_path.

CommentFileSizeAuthor
nitobe_utils.php_.patch841 bytessamc

Comments

Anonymous’s picture

Assigned: Unassigned »
Status: Needs review » Reviewed & tested by the community

This change is committed to CVS in revision 1.6 of nitobe_utils.php It will be in the next release.

Thanks for this! It's one line that makes a world of difference. You're now on the patch contributor list.

Also, I really like the color scheme you used when you sub-themed it.

Anonymous’s picture

Version: 6.x-2.0 » 6.x-2.1
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.