Jump to content

Recommended Posts

Posted

So in editing the style.css and the style2.css I have found out how to change the background. Unfortunately it sets it for every page. Is there a way to set a different background for say my Pilot Center page than there is on the front page?

Posted

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.

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...