Copied to clipboard

Flag this post as spam?

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


  • Natalie 22 posts 162 karma points
    May 24, 2019 @ 09:46
    Natalie
    0

    Hello, Working on Umbraco 7.6.5.

    I create a home page which link to other pages I create too. My home page is rendering fine but when I click on the links, I've got th page I create but they are not styled.

    Has somebody got any idea why ?

    Here is what I 've got (I've got the same when I click on the link to document from the page) :

    Here is what I 've got

    And what it should be (from the preview button) : enter image description here

    Thanks !

  • Matt 353 posts 825 karma points
    May 24, 2019 @ 10:24
    Matt
    1

    Do you have a master template? is your css added to the master template or your home template?

  • Jonathan Distenfeld 105 posts 618 karma points
    May 24, 2019 @ 10:50
    Jonathan Distenfeld
    1

    Hi Natalie,

    could you please check if there are any errors in the console? Mybe there is a problem loading your stylesheet

    ~Jonathan

  • Natalie 22 posts 162 karma points
    May 24, 2019 @ 12:25
    Natalie
    0

    Hi Matt,

    Yes I have the master template Which is Webase. It is the master of home page and also master of Page. Page is a child of homePage. Thing is css work well on homePage, but not on Page, and just when I try to see them with their proper link, not on preview state (with the button).

    Hi Johnathan ! I check and there is no stylsheet for the page. There is for the homePage though. and html file is the same, because the maser is the same for both.

  • Matt 353 posts 825 karma points
    May 24, 2019 @ 12:33
    Matt
    1

    Can you copy the header of your master template? so we can see how your rendering the css

  • Natalie 22 posts 162 karma points
    May 24, 2019 @ 12:34
    Natalie
    0

    Right away :

    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <!-- Compatibilité Internet explorer -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Présentation M3 - Projet Test</title>
    <!-- BOOTSTRAP CORE STYLE CSS -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="bootstrap/css/bootstrap.grid.min.css" type="text/css" rel="stylesheet" />
    <link href="bootstrap/css/bootstrap-reboot.min.css" type="text/css" rel="stylesheet" />
    <link href="css/style.css" type="text/css" rel="stylesheet" />
    

  • Matt 353 posts 825 karma points
    May 24, 2019 @ 12:35
    Matt
    100

    Try adding ~/ infront e.g

    ~/bootstrap/css/bootstrap.min.css
    
  • Natalie 22 posts 162 karma points
    May 24, 2019 @ 12:38
    Natalie
    0

    Cool ! That works !!!

    Thanks a million Matt !

    ;)

  • Matt 353 posts 825 karma points
    May 24, 2019 @ 12:41
    Matt
    1

    No problem :)

Please Sign in or register to post replies

Write your reply to:

Draft