Can we set background image for Login and Home Pages?


I’m trying to set background image for Login and Home Pages by using Website Settings and Web Theme things. But background image not reflecting.

Any suggestions?


Hi @raghu561,

as far as I know, there is no “official” answer. And this is more of a hack rather than a solution. But have you tried to set this using the website script? I.e. check if the url contains /login#login, if it does, switch the background of the div.container. Something like

var container = document.getElementsByClassName("container");
if (container.length > 0) {
    if (window.location.hostname.includes("/login#login")) {
       container[0].style.backgroundColor = "#d68080";

Hope this helps.

1 Like

Thanks for suggestions @lasalesi
div.container not available in login!

It should be available:

Maybe you experience a race condition? Try waiting in you script before you load the element (see setTimeout())…

Hi @lasalesi

I did changes over login.css file, now background image working properly.
Thanks for your support!!