Customizing themes

Topics: Customizing Orchard
May 9, 2011 at 3:05 PM

Hi,

I've been trying out theme customization as per this link http://www.orchardproject.net/docs/Customizing-the-default-theme.ashx

I successfully created a new theme based on the Contoso one, but I notice none of the image urls in the new copy of Site.css appear to be being resolved correctly (or at least they don't appear in the rendered page). 

I was assuming that if the url doesn't resolve then it would revert to the parent theme files in the 'BaseTheme'.  Is that not the case for css or am I doing something else incorrectly?

Many thanks

John

May 9, 2011 at 3:10 PM

In CSS, images are resolved relative to the CSS file (nothing to do with Orchard). So you need to copy the images into your new theme so they're in the same path relative to Site.css.

May 9, 2011 at 3:45 PM

Thanks very much for the confirmation Pete - all fixed.

All the best

John