+ Start a Discussion
Esti LeiserEsti Leiser 

Custom stylesheet for Force.com site


I'm trying to set up a custom stylesheet for a Force.com site, and can't seem to get it working.

Here's what I tried:
I created a Force.com Site which contains 2 pages. I then created a Site Template (basically copied the default one and modified it) and applied it to the Site. Then I created a stylesheet as a Static Resource, via the developer console. I customized the Site Template to use the stylesheet I created via this code:

<apex:stylesheet value="{!URLFOR(!$Resource.GIStyleSheet)}"/>
But when I load my site, the stylesheet doesn't seem to be coming through.

Any advice? Thanks!
Best Answer chosen by Esti Leiser
Esti LeiserEsti Leiser
I just figured this out! I had to set the Cache Control on the static resource to Public.