function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Esti LeiserEsti Leiser 

Custom stylesheet for Force.com site

Hi!

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.