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)
-   -   Replacing widget title with image - image and title are displaying at same time (http://forum.bytesforall.com/showthread.php?t=6861)

barefaced Apr 25, 2010 10:07 AM

Replacing widget title with image - image and title are displaying at same time
 
Hi, hope someone can help. I am sure this is my own fault because I stupidly deleted all of my CSS inserts then saved. Prior to that "doh" moment, I had successfully replaced widget titles with my own images using the following:

div.widget-title h3 {
display: none;
}

div#fidgetr-2 div.widget-title {
background: url('http://path/to/myflickr.gif');
height:30px;
background-repeat: no-repeat;
}

div#recently-on-last-fm div.widget-title {
background: url('http://path/to/mylastfm.gif');
height:30px;
background-repeat: no-repeat;
}

etc etc

Since adding this back into the HTML/CSS inserts section, both the widget title and image are displaying. Any suggestions? I've tried removing and replacing the widgets from the sidebar. I have resolved it for a couple by removing the text from the widget title field on the widget page but some of them don't have that facility.

You can see what I mean here

Thanks
Nicki

juggledad Apr 25, 2010 04:14 PM

change your
div.widget-title h3 {
display: none;
}
to
div.widget-title h3 a {
display: none;
}

barefaced Apr 26, 2010 11:47 AM

Juggledad

Thanks, tried that but it's made no difference :(
Nicki

juggledad Apr 26, 2010 12:50 PM

you have a bad line of code in the CSS just befor the 'div.widget-title h3 a'

HTML Code:

'styling widget titles

div.widget-title h3 a {
display: none;
}

the 'styling widget titles is the start of a quote, so it is messing up the things after it. remove it

barefaced Apr 27, 2010 03:56 PM

Juggledad - thanks. Soon as I read that I recognised that I had used VBA code commenting instead of CSS commenting. Thanks for pointing it out, I'm such a doofus!


All times are GMT -6. The time now is 01:56 PM.

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