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.

    MMM-Reddit two headers instead of just one

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 756 Views 1 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.
    • J Offline
      JoMa25
      last edited by

      Hey Guys, I’m new to the MM community and wanted to put in a Reddit module I found on this forum. (https://github.com/kjb085/MMM-Reddit) Now as you can see in this image, I have two headers instead of just one. Does anyone know a solution? Some other user posted the same issue in the forum of the module maker but he didnt response (12 days ago).

      {
      			module: "MMM-Reddit",
      			position: "top_right",
      			config: {
          				subreddit: 'aww',
      				displayType: 'image',
      				imageQuality: 'high',
      				count: 10,
      				show: 1,
      				width: 500,
      				showNumComments: false,
      				showHeader: true,
      			}
      		},
      
      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @JoMa25
        last edited by bhepler

        @JoMa25 - try turning off the showHeader in your config and see if one of the headers goes away. I didn’t look at the code, but it’s possible the module creator implemented his own header before the Magic Mirror framework started doing it.

        You can probably turn off the module-specific header and use the MagicMirror’s framework header. I don’t know if the header is supposed to be dynamic in the module, but a decent workaround may be:

        module: "MMM-Reddit",
        	position: "top_right",
                header: "Topics from s/aww",
        	config: {
                       subreddit: 'aww',
        	       displayType: 'image',
        		imageQuality: 'high',
        		count: 10,
        		show: 1,
        		width: 500,
        		showNumComments: false,
        		showHeader: false,
             }
        
        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JoMa25 @bhepler
          last edited by

          This post is deleted!
          bheplerB 1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer @JoMa25
            last edited by

            @JoMa25 - sorry, was bouncing around abit on my code. See my edited post for an alternative.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JoMa25 @bhepler
              last edited by

              @bhepler your custom header doesnt show

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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