• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 995 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 Apr 17, 2022, 11:06 AM

    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?

    M S 2 Replies Last reply Apr 17, 2022, 11:43 AM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @mayfield
      last edited by Apr 17, 2022, 11:43 AM

      @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 Apr 17, 2022, 12:00 PM Apr 17, 2022, 11:59 AM

        @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 Apr 17, 2022, 12:26 PM

          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 Apr 17, 2022, 12:29 PM Reply Quote 0
          • S Offline
            sdetweil @mayfield
            last edited by Apr 17, 2022, 12:29 PM

            @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 Apr 17, 2022, 12:37 PM Reply Quote 0
            • M Offline
              mayfield @sdetweil
              last edited by mayfield Apr 17, 2022, 12:37 PM Apr 17, 2022, 12:37 PM

              @sdetweil Appreciate the help Thanks

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                5/6
                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