The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Template not converting CSS

lyjolyjo Member
in Help edited September 2012
When creating a checkout template the generated code does not convert the links nor 'consume' the css code into the cached template page. The css links simply remain as they were in the original non-cached source file. When saving the template the system generates the follow error - "Warning - A reference to a non secure css file was found". I've removed any unnecessary links and all files are UTF-8 encoded.

Thanks for any perspective and help!
  • fc_adamfc_adam FoxyCart Team

    Without seeing your template it's a little hard to tell - but there is a chance you're running into a small known bug relating to the order of the attributes of the style link tag.

    So for example if your link tags look like this:
    <link href="style.css" rel="stylesheet" />

    Change them to this:
    <link rel="stylesheet" href="style.css" />
  • Thank you soooo much Adam! That worked.

    I should have come to the Forum sooner.
  • This is still a bug. Almost had me crawling up the walls. :)
  • Okay, I've spent over an hour trying to get this to work, with no success.

    Stylesheets are currently referenced as

    <link rel="stylesheet" href=""; />
    <link rel="stylesheet" href=""; />
    <link rel="stylesheet" href=""; />

    *I've replaced the actual URL with XXX to protect client privacy.

    I get the error on Upload template

    A reference to a non secure css file was found:

    Please take a look at our automatic template caching documentation for more info.Your template has been saved, but your customers will see insecure content warnings. Please set the template url and cache your template which will rewrite all HTTP references to HTTPS.

    I've also tried

    <link rel="stylesheet" href="/css/layout.css" />
    <link rel="stylesheet" href="/css/desktop.css" />
    <link rel="stylesheet" href="/css/mobile.css" />


    <link rel="stylesheet" href="../..//css/layout.css" />
    <link rel="stylesheet" href="../../css/desktop.css" />
    <link rel="stylesheet" href="../../css/mobile.css" />

    I don't get the warning error, but the style sheets do not load, when viewing the page and when I look at the source code FoxyCart says the files cannot be found.

    Since this reported as a bug in January 2012, I'm asking myself will this ever be fixed?

  • winstonwinston FoxyCart Team

    Could you use the whisper functionality to privately send us the store name and the url you're trying to cache so we can try to figure out the root cause?
Sign In or Register to comment.