Community Forums › Forums › Design Tips and Tricks › Tag Widget Title
Tagged: css widget title
This topic contains 4 replies, has 3 voices, and was last updated by newbie999 4 months, 2 weeks ago.
-
AuthorPosts
-
December 30, 2012 at 4:23 pm #8452
I want to use images for titles for my sidebar widgets. This isn’t a problem with text widgets. For non-text widgets (such as my tag cloud) it is controlled by the H4. I don’t want to change all non-text widgets in the same way but rather be able to control them individually. Even if I leave the title field empty it either puts in “tags” or “categories” there depending on what’s displayed in my tag cloud. How would I control just that title field? I want to ultimately put an image there and have the pinkish/”find more” be completely gone. I’ve tried what’s below but it seems to be just putting my test image over the existing pink title field that says read more.
#tag_cloud-2 .widget-wrap .widgettitle {
background-image:url("http://www.livecrafteat.com/wp-content/uploads/2012/12/sidebar_test.png") !important;
}
December 31, 2012 at 11:55 pm #8683I would try:
<code>#tag_cloud-2.widget.widget_tag_cloud .widget-wrap h4.widgettitle {
background-image:url(“http://www.livecrafteat.com/wp-content/uploads/2012/12/sidebar_test.png”) !important;
}</code>You’ll also need to put a space “ ” in the title of the widget to get the “find more” to drop out and leave just the image. If that doesn’t work, let me know.

Tisha Oehmen, Paradux Media Group
Twitter: @TishaOehmenJanuary 5, 2013 at 10:42 pm #9880The “ ” gets rid of the default title but the CSS didn’t seem to change anything.
January 5, 2013 at 11:11 pm #9890It might be easier to add a display: none; property for those individual widget titles in your CSS. For example
#tag_cloud-2 .widget-title, #categories-7 .widget-title { display: none; }Use whatever widget ID’s you want to adjust. Then you can “cheat” by adding a text widget above each of them with the title image only coded up as straight HTML in the body of the text widget instead of as a CSS background.
January 6, 2013 at 5:04 pm #9986Thanks Chris. That’s a decent workaround. The problem then is how do I eliminate all the extra space between the two widgets? Since I’m using a text widget as a title/header for the widget below it leaves a bunch of white space when compared to other widgets. I’d like it to be consistent down my sidebar.
-
AuthorPosts
You must be logged in to reply to this topic.