This project is read-only.

Customizing themes

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


I've been trying out theme customization as per this link

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


May 9, 2011 at 4: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 4:45 PM

Thanks very much for the confirmation Pete - all fixed.

All the best