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.

css files laod twice?

drwagner13drwagner13 Member
in Help edited April 2012
I am battling a new problem... but there's progress! All my custom styles applied to the cart are in a separate css file. It seems to be loading, I can see it in Firebug. When the cart loads, the css loads again, which seems weird. But none of the styles are applied. Obvuously I've gone wrong somewhere along the line. Any thoughts?
  • fc_adamfc_adam FoxyCart Team

    Try removing this line from your cart template:
    <link rel="stylesheet" href=""; type="text/css" media="screen" charset="utf-8" />
  • drwagner13drwagner13 Member
    edited April 2012
    Indeed that was the problem. The other solution was so remove the s from https.

    As soon as aI seek help, things get figured out. The problem was that I changed the url to the css file in the foxycart template section to https, because it complained that there was a non-secure something something. So I made the foxycart thing stop complaining, not realizing later that this was causing the file not to be found.

    One thing I learned in this process is that it seems that my normal web page does not need a link to the cart css file, as this is loaded into the iframe when the cart is loaded. Is this correct? Or at least it only needs to be called in one place or the other... which is preferred?
  • fc_adamfc_adam FoxyCart Team
    That's right.

    Styling for your cart goes in your FoxyCart cart template, not on your websites templates. If you have a stylesheet for your cart included on your website, it won't actually affect the cart as it's a different page loaded in an iframe in the modal window.

    In terms of the cart/checkout complaining it wasn't secure - you can get around that by securely caching your templates using automagicache - for more information on that take a look at
  • Thanks Adam, this makes so much sense. I don't know why it took me til now to understand this!
Sign In or Register to comment.