I see that in version 1.6.1 the change log notes “Modified the {stylesheet=""} tag to allow browser caching of CSS files and built in versioning of stylesheets”
The question I have is that I’m having trouble with using the @import rule to pull in another stylesheet.
I am linking from the document heading using:
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=global/css_screen}' />and inside of that stylesheet I have:
/* Styles for screen media */
/* Import Stylesheet(s) and Hide from ie/mac \*/
@import url("global/css_master");
/* End Import/Hide */the code below, using 1.6.1, results in a 404 file, but the code below
/* Styles for screen media */
/* Import Stylesheet(s) and Hide from ie/mac \*/
@import url("?global/css_master");
/* End Import/Hide */...in 1.6.1 gets me the result that I expect.
Previously, before recent versions, all I needed to do was reference the full template path to access the CSS stylesheet with the @import method. Obviously now I’m confused. 😉
Can someone help me pin down “the right way” to do what I am trying to do, or illustrate to me a better way?
One of the core reasons that I like the @import version is that I can add the template_edit_date tag to the CSS file and always know when I last updated the site’s CSS.
Here’s an example of my code:
/* ------------------------------------------------------------
Theme: Theme Name
Company: IMAGE202 ENTERTAINMENT
Author: Adam Stacoviak, .(JavaScript must be enabled to view this email address)
Updated: {template_edit_date format="%g:%i%a - %l, %F %j%S, %Y"}
------------------------------------------------------------ */Thanks in advance and happy holidays!!
Adam