MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    CSS Not loading

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 875 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @mumblebaj
      last edited by

      @mumblebaj said in CSS Not loading:

      return [“MMM-NewsAPI.css”]

      where do you think that file is? (module folder)
      and where do you think MM is running at the time? (MagicMirror folder)

      you need to give the path to the css file

      this.file(cssfile) will give u the full path

      return [this.file(“MMM-NewsAPI.css”)]

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      mumblebajM 1 Reply Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @sdetweil
        last edited by

        @sdetweil Thanks for the reply Sam.
        I have tried that and that didn’t work either. :crying_face: I have just updated now and it still doesn’t work.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories
        Check my blog-post: https://mumblebaj.xyz/
        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @mumblebaj
          last edited by

          @mumblebaj where is the css file?

          show me ,

           ls whatever folder -laF
          

          custom.css doesn’t exist by default, u have to create it to use it.
          (my installer script creates it for you)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          mumblebajM 1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @sdetweil
            last edited by

            @sdetweil Ag, you know what, if I could smack myself upside the head…I WOULD. I had a simple spelling error. I saw now that I named it getStles missing the Y. It is working again.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories
            Check my blog-post: https://mumblebaj.xyz/
            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @mumblebaj
              last edited by

              @mumblebaj lol, computers are fast and picky!!

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              mumblebajM 1 Reply Last reply Reply Quote 0
              • mumblebajM Offline
                mumblebaj Module Developer @sdetweil
                last edited by

                @sdetweil I can’t believe I didn’t see it. I have 4 different screens open. Wrote another little program on the side to verify that the styles are working properly. Everything. Just to see now I left out the Y in Styles. Thanks again Sam. You made me look closer. Else I would still be sitting here searching.

                Check out my modules at: https://github.com/mumblebaj?tab=repositories
                Check my blog-post: https://mumblebaj.xyz/
                Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy