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.

    Compliments mod using custom.css

    Scheduled Pinned Locked Moved Custom CSS
    6 Posts 3 Posters 1.1k Views 3 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.
    • M Offline
      mayfield
      last edited by

      Hello all

      My wife has a problem with the default compliments, specifically the word Sexy, so I’ve been modifying the default compliments.js located in /MagicMirror/modules/default/compliments however each time there is an update I have to do this again,

      How can I use the custom.css to overcome having to change compliments.js?

      mumblebajM S 2 Replies Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @mayfield
        last edited by

        @mayfield You can use your own custom file. See the MM Page for info.

        https://docs.magicmirror.builders/modules/compliments.html#screenshots

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

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

          @mayfield also, never change the source code mm ships.

          all configuration can be done in the config.js

          {
             module:'compliments',
              position:
              config:{
                    compliments:{
                             morning :{
                             },
                             afternoon:{
                             }
                            ... etc
                     }
               }
          }
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            mayfield
            last edited by

            OK well thats pretty simple lol and I take it that come next update that part I have just changed will stay the same?

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

              @mayfield config.js is YOURs, we don’t touch that file. that’s the whole point.

              as mentioned you can put the compliments text config itself in a file as well and use the remote file config option

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mayfield @sdetweil
                last edited by mayfield

                @sdetweil Appreciate the help Thanks

                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