Jump to content

Different background on different pages


EvanM07

Recommended Posts

Use this code in the .tpl/.php file you want it changed(Put it at the top). The !important at the end servers to override any existing properties for backgroundImage.

<script>
document.body.style.backgroundImage = "url('INSERT IMAGE URL HERE') !important";
</script>

That should do it. Don't try to change it via CSS in the .tpl file, it's not going to override it's parent elements.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...