Skip to main content

CSS missing on frontend

Comments

10 comments

  • Natalia Chitoroaga

    Hi Jean,

    The css is broken because of the code in the Code injection tab. 

    At this moment, the team removed this code (temporarily), and they are looking on this incompatibility.

     

    Will keep you updated.

    Regards, Natalia

    0
  • Natalia Chitoroaga

    Jean, can you check now the preview mode (clear the browser cache first)? 

     

    Thank you!

    Natalia

    0
  • Jean-Pierre Michael

    Yes, it's working. any idea where that did come from ?

    0
  • KC George

    Hi

    Like Natalia mentioned above, the CSS was broken because of the code in the Code injection tab. 

    0
  • Jean-Pierre Michael

    The code is still there and was working fine before. Did you remove something or change it on your end ?

    0
  • Natalia Chitoroaga

    Hello Jean,

    I will be honest - I didn't do anything.

    I was creating an issue for our team, to inspect this issue, and when I added the code back into your project, the page was loading fine in preview. I asked my colleagues to check your project using different IP addresses, and it worked. 

    Regards, Natalia 

    0
  • Jean-Pierre Michael

    Good to know. So changing the code and re-saving might fix CSS problems…

    0
  • Jean-Pierre Michael

    I could reproduce the problem. Each time I change something related to the Typography of the site, CSS gets broken. I have to remove the code and save it again to see the CSS.

    And after that, when trying to re-add the code it doesn' work anymore.

    0
  • Jean-Pierre Michael

    This is the code not working

    <!-- langue -->
    <script>
    const html = document.querySelector("html");
    if (html) {
    html.setAttribute("lang", "fr");
    }

    0
  • Jean-Pierre Michael

    Maybe is this because of the tranlation option I added.

    0

Please sign in to leave a comment.