Active
Project:
Nitobe
Version:
6.x-4.1
Component:
Code
Priority:
Normal
Category:
Support request
Reporter:
Created:
21 Oct 2010 at 19:21 UTC
Updated:
24 Oct 2010 at 01:41 UTC
Jump to comment: Most recent
Hi! First of all, thanks for the great theme!
Now, I have created a subtheme for Nitobe, and I've modified nitobe_utils so that the site's background is is changed to match the randomly selected header image... I've tested it by modifying the nitobe proper theme, and it works as desired. My question is, how do I override the default nitobe_utils for my subtheme, so that it can take advantage of my new version?
I've tried placing a "nitobe_utils.inc" file in my subtheme directory, but that doesn't do the trick.
Thanks for any help!
Comments
Comment #1
jordanmagnuson commentedI found that changing line 9 of Nitobe's template.php from:
to:
Solved the problem by allowing me to include my own nitobe_utils.inc in my subtheme's directory. Is there another way to solve this, without modifying Nitobe's template.php?
Comment #2
Anonymous (not verified) commentedThe random image is chosen via JavaScript by default, so I'm not quite clear on what approach you're taking to picking the the background.
Could you give me some more details on how you're adjusting the background?
Comment #3
Anonymous (not verified) commentedComment #4
jordanmagnuson commentedHere's my modified nitobe_utils.inc. Search for "chosen_bg" to see how I've modified it:
Let me know if you need any further info!