EvanM07 Posted August 1, 2015 Report Posted August 1, 2015 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? Quote
Members Vangelis Posted August 2, 2015 Members Report Posted August 2, 2015 Have a look at this http://stackoverflow.com/questions/16646835/different-background-for-each-page Quote
magicflyer Posted August 2, 2015 Report Posted August 2, 2015 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. Quote
EvanM07 Posted August 3, 2015 Author Report Posted August 3, 2015 What if I just wanted to use a hex code color instead of a background image? Quote
magicflyer Posted August 4, 2015 Report Posted August 4, 2015 <script> document.body.style.background = "#HEXHEX !important"; </script> Quote
EvanM07 Posted August 4, 2015 Author Report Posted August 4, 2015 I tried changing that in the profile_main.tpl and it still the same Quote
EvanM07 Posted August 8, 2015 Author Report Posted August 8, 2015 Still not finding a solution to this Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.