MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Compliments mod using custom.css

    Custom CSS
    3
    6
    430
    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
      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?

      mumblebaj S 2 Replies Last reply Reply Quote 0
      • mumblebaj
        mumblebaj Project Sponsor @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

        1 Reply Last reply Reply Quote 0
        • S
          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

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M
            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
              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

              Create a working config
              How to add modules

              M 1 Reply Last reply Reply Quote 0
              • M
                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy