EvanM07 Posted August 1, 2015 Report Share 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 Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 2, 2015 Members Report Share Posted August 2, 2015 Have a look at this http://stackoverflow.com/questions/16646835/different-background-for-each-page Quote Link to comment Share on other sites More sharing options...
magicflyer Posted August 2, 2015 Report Share 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 Link to comment Share on other sites More sharing options...
EvanM07 Posted August 3, 2015 Author Report Share Posted August 3, 2015 What if I just wanted to use a hex code color instead of a background image? Quote Link to comment Share on other sites More sharing options...
magicflyer Posted August 4, 2015 Report Share Posted August 4, 2015 <script> document.body.style.background = "#HEXHEX !important"; </script> Quote Link to comment Share on other sites More sharing options...
EvanM07 Posted August 4, 2015 Author Report Share Posted August 4, 2015 I tried changing that in the profile_main.tpl and it still the same Quote Link to comment Share on other sites More sharing options...
EvanM07 Posted August 8, 2015 Author Report Share Posted August 8, 2015 Still not finding a solution to this Quote Link to comment Share on other sites More sharing options...
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.