/Global and /Images question

Posted by Community Admin on 05-Aug-2018 21:11

/Global and /Images question

All Replies

Posted by Community Admin on 01-Dec-2013 00:00

1. For a custom theme, can you include additional directory structure containing cross-referencing CSS files within /Global?

Example:
\Global
    \SharedCss
    \HeaderCss
    \MainCss
    \FooterCss

2. For a custom theme, can CSS files inside /Global use the attribute url(../../Images/nav-arrow-blue.png) to specify the file of a background image? If not, how can image file urls be referenced?

3. Can multiple levels of directories exist within the /Images directory of a theme?

thanks,
John

Posted by Community Admin on 02-Dec-2013 00:00

Hi John,

Let me address your questions in order below:
1. Yes, absolutely. Any CSS files that you put in the /Global folder will be automatically loaded upon the initialization of your Sitefinity website. Any CSS files that you place in subfolders of that would need to be explicitly referenced through your .master file or page properties.
2. Yes, absolutely. Example - in the Quantum demo website located here, we have referenced images from the Images folder via CSS using this:

background-image: url(../Images/background.jpg);
3. Yes, absolutely. Just make sure to reference the path correctly so that the images come up!

Hope that helps!

Regards,
Grisha 'Greg' Karanikolov
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed