@crazycells
image.png
image.png
Right. I moved the custom HTML to a HTML based global widget, and that works Give it a try
Also, not sure why you are using the html
class for the background images. You should use body
. I just tried it, and it works fine
@DownPW some additional advice. The images you are calling remotely should be hosted on your own server. This will prevent unnecessary remote calls, and will also load faster. Iโm seeing delay times of up to a second before the wallpaper appears
Ok if I understood, I canโt use custom ACP Header for HTML code. I must use an HTML widgets.
For background, I use the code on NodeBB forum but if you have a code working great on desktop and mobile. II want it a lot
@downpw If you move the background CSS you are using out of the html
element and into the body
for each stylesheet, itโll work.
Not sure why the custom HTML works fine in a widget, butโฆ well - it works !
For Wallpaper, i will test your solution. That solutino work on mobile ?
@downpw Yes, it does.
like this ? @phenomlab
/* Smartphone */
@media (min-width: 320px) {
body {
background: url(https://i.imgur.com/XXXX.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
}
/* Desktop */
@media (min-width: 1281px) {
body {
background: url(https://i.imgur.com/XXXX.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
}
@downpw Yep. That should work.
Whoops, I have test and not work on mobile
Just fix this and itโs perfect for me
@downpw So itโs working now ?
no.
white background on mobile
@downpw Ok. Checking now.
I see this on console with smartphone enabled
@downpw Yes, I see it. On each CSS sheet you have, change
background-color: white
to background-color: transparent;
on the body
tag and let me know if that fixes it.
Ok I test that
@downpw On each body
tag, change background-color: white
to background-color: transparent;
nope doesnโt work
@downpw Try background-color: transparent !important;
yes I have test that too
@downpw Odd. This is what I see.
Then, from your body
class, I change background-color: white
to background-color: transparent;
So the CSS now look like
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
font-size: 14px;
line-height: 1.42857143;
color: white;
background-color: transparent;
}
And the image displays