Read the statement by Michael Teeuw here.
Change newsfeed title to image/logo?
-
Change this section of the newsfeed.js file (copy, paste, overwrite)…
and add a getStyles function to call the newsfeed.css…
Create a newsfeed.css file and put the following in it…
(I think I will post pics instead of code from now on!) :smiling_face_with_sunglasses: :smirking_face: :confused_face:
Enjoy!
-
You’ll have to find the logo for the news feed you are using (Google images)
save it to your newsfeed folder
change the part in the top code (USATodayLogo.jpg) to match your image
-
Now, to figure out how to do it for those who have more than 1 newsfeed!
-
I tried to do all those changes to newsfeed.js and created newsfeed.css file but it seems like that I’m doing something wrong beacuse now my whole newsfeed segment disappeared from my MagicMirror :D I took couple of screenshots to show what are the changes that I did.
I replaced that part of the code that is shown in first picture with that one that is in the second picture.
newsfeed.css file is in the third picture and all of the files in the newsfeed folder are shown in the last picture.
Even if it is not working yet I really appreciate all your effort that you have been putting on this :thumbs_up_light_skin_tone:
-
description.innerHTML = `<img src="/modules/default/newsfeed/hsLogo.png">` + ...
HTML entity escaping is not so good in this Forum BBS program
@justjim1220 might had typed'
but this BBS program had changed it to"
automatically.
Anyway, you can use above code; -
@blueadam
I think this would be what @justjim1220 really typed;
-
Yeah, with those changes newsfeed module came back but it still looks exactly the same that it was, so there isn’t that logo that I’m using
EDIT
showDescription was set to false and when I changed it to true all changes started to work but now I have another problem. Now there is the original headline and the new one so there are two headlines at the same time.
EDIT 2.0
Finally it works! I had to change the newsfeed.js code a little bit and had to change some true values to false from config.js. Also, I decided to move the module to bottom_left. After all changes the final result looks like this. I’m about to make second news module right below this one after this one.
-
@justjim1220 I was just about to say that! lol
-
@cyberphox @blueadam @Sean
I see that I didn’t notice the changes that the forums made when I copy/pasted the code.
Apologies!
I also missed a step: Need to add getStyles function to the newsfeed.js Pic for placement
And this is what I tried to post and the forums didn’t like it and cahnged it, This is what you need to get it to work:
I will fix this in my original post.
Again, Apologies!
-
here it is with the New York Times…