Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Denousse 19 posts 88 karma points
    May 22, 2019 @ 09:22
    Jason Denousse
    0

    I have css pointing to a url on my own server (http://www.rslcontent.co.uk/kiosk/Rochester/css/content.css).

    However, the css doesn't load in. I don't want to store the css on umbraco as only part of the site is on umbraco.

    Why won't this load in? Do i have to put a special prefix to access external url's?

  • Dennis Adolfi 1045 posts 6174 karma points MVP c-trib
    May 22, 2019 @ 14:40
    Dennis Adolfi
    0

    Hi Jason.

    How are you referring to the css? Could you show some markup? Are there any console errors?

  • Jason Denousse 19 posts 88 karma points
    May 22, 2019 @ 15:01
    Jason Denousse
    0

    Inside my head tags of my html I have

    link rel="stylesheet" href="http://www.rslcontent.co.uk/kiosk/Rochester/css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="http://www.rslcontent.co.uk/kiosk/Rochester/css/content.css" />
    <link rel="stylesheet" type="text/css" href="http://www.rslcontent.co.uk/kiosk/Rochester/css/category.css" />
    <link href="https://fonts.googleapis.com/css?family=NTR" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="http://www.rslcontent.co.uk/kiosk/Rochester/css/materialize-custom.css" />
    

    The materialize css works but not my custom css.

    Also have a similar problem with links to my js.

    If have to load them through Umbraco then so be it, hwoever, as only part of my website is using Umbraco, I'd prefer my Umbraco templates to link to css on my server.

  • Amir Khan 930 posts 1836 karma points
    May 22, 2019 @ 17:22
    Amir Khan
    0

    Hi Jason, are the google fonts loading also? That and your materialize reference are the only two using https so could be an issue with that.

    Might want to try referencing the other assets in a protocol agnostic fashion or securing your server.

    Like this: href="//www.rslcontent.co.uk/kiosk/Rochester/css/category.css"

Please Sign in or register to post replies

Write your reply to:

Draft