Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Background in sidebar only shows on front page (http://forum.bytesforall.com/showthread.php?t=8900)

tkeller Aug 13, 2010 10:56 PM

[SOLVED] Background in sidebar only shows on front page
 
This site:
http://ceaselesswind.com/
uses 2 .gif images as a backgrounds on the right and left sidebars using this code:
padding: 6px 6px 6px 6px;
background: url(./wp-content/themes/atahualpa351/images/cw_sidebar200_grad_new.gif);
background-repeat:repeat-y;

Why do the backgrounds disappear on all other pages like the blog page?

The front page is set as static page.

Velma Aug 13, 2010 11:15 PM

I've had that happen before too. I usually find that if I put the full url of the image it works on all the pages. (so with the http:// etc.)

Hopefully that works for you too. :)

Warmly,

Velma

lmilesw Aug 13, 2010 11:17 PM

Try using this instead
HTML Code:

padding: 6px;
background: url(./wp-content/themes/atahualpa351/images/cw_sidebar200_grad_new.gif) repeat-y;

Or this
HTML Code:

padding: 6px;
background-image: url(./wp-content/themes/atahualpa351/images/cw_sidebar200_grad_new.gif);
background-repeat:repeat-y;

If you your padding is the same on all four sides you only need to enter it once. The way you had it wasn't wrong and wasn't causing a problem but I wanted to add that info.

The background line you used of for shorthand so I added the repeat after the line. In the second example I used the background image selector and then you can use the background-repeat.

Let me know if this works.

tkeller Aug 14, 2010 08:31 AM

The full url worked thanks! I thanks for the CSS code trick.


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

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