ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CSS Stylesheet using http instead of https

March 13, 2011 5:14am

Subscribe [2]
  • #1 / Mar 13, 2011 5:14am

    JmanPro

    49 posts

    Greetings,

    I am setting up an online store on my EE 2.1.3 Build 20101220, with Cartthrob beta. As part of this, I have been making sure all images and files are linked via https instead of http on my store page. Unfortunately it appears as if my CSS file is being accessed via http instead of https. I am using the following code to generate my CSS link:

    {stylesheet=global_embeds/site_css}

    Any ideas why this could be happening? Thanks!

  • #2 / Mar 14, 2011 2:32am

    John Henry Donovan

    12339 posts

    Jerman,

    that tag uses the site URL inside your General Configuration so you will have issue with it.

    You can manually create the link to the template though

    <link rel="stylesheet" type="text/css" media="all" href="https://www.mydomain.com/index.php/css/global_embeds/site_css" />

    Adding a trigger word of css makes sure the stylesheet does not run through the full template parser. See here for more info

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases