+ Start a Discussion
MoreThanWYSIWYGMoreThanWYSIWYG 

How can I call one static resource into another?

I have an overarchng zipped static resource that defines an entire part of our site (Static Resource A). I also have another static resource with our comapny's font information (Static Resource B - GothamFontSet).

How can I dynamically reference Static Resource B from A?

Here is an example within Static Resource A:
Working:
@font-face {
	font-family: Gotham-Book;
	src: url("/DefaultStore/resource/1496327996000/GothamFontSet/Gotham-Book.otf") format("opentype");
}

Not working;
@font-face {
	font-family: Gotham-Book;
	src: url("{!URLFOR($Resource.GothamFontSet, 'Gotham-Book.otf'") format("opentype");
}

What I want to do is avoid having that hardcoded datetime stamp as shown in the "working" version.
Any suggestions?

 
SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below link for similar discussion.

https://salesforce.stackexchange.com/questions/159056/how-to-call-static-resource-image-in-another-static-resource-css-file
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya