Navigation

    MagicMirror Forum

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

    MMM-Reddit two headers instead of just one

    Troubleshooting
    2
    5
    34
    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
      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,
      			}
      		},
      
      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @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
          JoMa25 @bhepler last edited by

          This post is deleted!
          bhepler 1 Reply Last reply Reply Quote 0
          • bhepler
            bhepler Project Sponsor @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
              JoMa25 @bhepler last edited by

              @bhepler your custom header doesnt show

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