Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Background image not showing up (http://forum.bytesforall.com/showthread.php?t=16618)

Angiec Jan 27, 2012 12:28 PM

[SOLVED] Background image not showing up
 
Hi- Awesome theme! ATA 3.7.3

I'm trying to add a png repeating background to my site and it's coming up with a white screen- can you look at my code and see where my error lies? Thanks for your help!

My site is not yet live, but if you need to look at the back end, I can send you the u: and p: in a private message.


Code:

background: url(/wp-content/themes/atahualpa/images/controls-bg.png) repeat-x;

lmilesw Jan 27, 2012 12:34 PM

What happens if you put the full path in?

Angiec Jan 27, 2012 12:42 PM

Thanks for the quick reply. Nothing happens... I just used this one, saved it, and refreshed the page.

background: url(/wp-content/themes/atahualpa/images/controls-bg.png) repeat-x;

Any other ideas?

juggledad Jan 27, 2012 12:46 PM

what he meant was using the fully qualifgied URL ie
HTML Code:

http://yourdomain.com/wp-content/themes/atahualpa/images/controls-bg.png
but that gets a 'not found' so the image name is wrong, otr it is not there or there is a permission issue with it.

Angiec Jan 27, 2012 01:05 PM

This is the one I tried next...

background: url(http://yourdomain.com/wp-content/the...ontrols-bg.png) repeat-x;

You're right about it not being at that file path (I just realized that), but it's loaded in the file manager and when I double click on it, the image I created in photoshop comes up. I am baffled. What would you try next if you were me?

lmilesw Jan 27, 2012 01:09 PM

File names are case sensitive. Your image file name as upper case letters in it but your path does not.

Angiec Jan 27, 2012 01:29 PM

I checked the capitals piece and to rule out an issue, I just re-saved it with lower case letters. I found some errors in the file extension and then I refreshed it and checked it in firebug. It appears that the page is calling up the correct file, there is additional information on the end-- and ideas?

background: url("/wp-content/themes/atahualpa/images/poc.png") repeat-x scroll 0 0 transparent;

lmilesw Jan 27, 2012 02:29 PM

Your code should be either

HTML Code:

background: url("http://yourdomain.com/wp-content/themes/atahualpa/images/poc.png") repeat-x scroll 0 0 transparent;
Or MAYBE

HTML Code:

background: url("/wp-content/themes/atahualpa/images/poc.png") repeat-x scroll 0 0 transparent;

Angiec Jan 27, 2012 02:51 PM

Wow! The first one worked! Thanks!!


All times are GMT -6. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.