windyartisans Posted January 10, 2012 Share Posted January 10, 2012 I've tried editing the whmcs.css file for the default client area template to add a background image to the body. So I did, but when I go to the site the image isn't there. I checked in firebug, and the css that's called doesn't even include the piece of code I added. So I created a new template based off of the default one, still nothing. How can i edit the css? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 Are you certain the changes were saved then uploaded, and to the correct folder? Sure it's the right template set you're editing? 0 Quote Link to comment Share on other sites More sharing options...
windyartisans Posted January 11, 2012 Author Share Posted January 11, 2012 I would say I'm familiar with online file management, so I don't think that's the problem. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 Had a look, and you're correct. Have you cleared the cache? I can see it directly in the CSS file, but not in the one that page is calling when viewed with Firebug. 0 Quote Link to comment Share on other sites More sharing options...
windyartisans Posted January 11, 2012 Author Share Posted January 11, 2012 I've just switched hosting servers yesterday and some pages are still acting funky. Could this be it? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 Anything is possible. The IP I have for your server just now is 199.188.204.97. Is that right? 0 Quote Link to comment Share on other sites More sharing options...
windyartisans Posted January 11, 2012 Author Share Posted January 11, 2012 199.188.204.97 Yes, this one's mine. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 Ok. The page is loading this one:: body { background-color: #EFEFEF; } .whmcscontainer { background-color: #FFFFFF; } But the CSS file has the image link in it on that same line. What is the actual location of that image? (have you emptied the cache yet?) 0 Quote Link to comment Share on other sites More sharing options...
windyartisans Posted January 11, 2012 Author Share Posted January 11, 2012 Cache - in my browser? yes. the image is in both the default and windy template images directory, so whmcs/templates/default/images/background-wood.jpg 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 No, the templates_c folder within your WHMCS directory (should actually be above the doc root for security). Smarty/WHMCS caches the pages as they're viewed. 0 Quote Link to comment Share on other sites More sharing options...
windyartisans Posted January 11, 2012 Author Share Posted January 11, 2012 There was only index.php there. I deleted it. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 That one file should stay. Cached files should look like long strings with tpl extensions. Anyway, back to the CSS. For one, the image isn't in "images" it's in "img", an easy mistake to make. Try this: background-image:url('../img/background-wood.jpg') !important; You had: background-image:url (../../images/background-wood.jpg) !important; The link is relative to the style sheet. Since that's located in /templates/windy/css, you need to climb up one and into "img". By the way, please do yourself a favor and read this page: http://docs.whmcs.com/Further_Security_Steps 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 11, 2012 Share Posted January 11, 2012 Hey, it's working! Oh, but the link will break your SSL protected pages that way. [http://windyartisans.com/members/images/background-wood.jpg");] Relative will work on all pages... 0 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.