help with Wordpress Text widget background images

Status
Not open for further replies.

jeff01050

Member
Dec 13, 2006
91
0
6
Ok this is killing me.

I need to place a background image in a text widget for wordpress for a newletter sign up box. Im able to that with in the css:

".textwidget{ width:198px; height: 147px; background-image: url(images/form.gif); "

the problem is the widgets have a default background image an it shows under the image i just made. Want to get rid of teh default image but keep it for the other widgets or possibly be able to define back ground images for each widget.

Any help would I be great full
 


I guess making a special class for the individual text widget would be the way

Code:
.textwidget_MyBackground { background-image:url(images/form.gif) !important }

*untested, just guessing*
 
hmm...

pain in the ass basically need to have a custom background image for each widget. In see the css and sidebar.php i see the widget calls but in the css there is only image for overall of the sideblock ... thanks houdas ill keep pluggin
 
Is this going in the sidebar of a specific page or all pages? If on all pages, why don't you just edit the sidebar.php and stick an HTML table in there the size of your widget and call out your background image in the table, then put your form code in there. If on a specific page, I got a trick for that too.
 
its on all pages and yes i can put in side bar but using aweber and want a background image . also would like to fig out how to code it for the widgets to have diff back grounds for each widget..i cant find any info ...
 
I think you should just be able to name your newsletter element .. it can keep its class but also give it an id (example: id="newsletter). Then:

#newsletter {background-image: url('your url');}

Keep in mind ... there should only ever be 1 #newsletter element on any given page ... ids are unique.
 
Status
Not open for further replies.