Text widget heading
-
I’ve used the <h2></h2> tag to create my text headings, but the titles don’t position themselves within the green box like those of the premade widgets (like the calendar, archives, etc). I’m a CSS-n00b, so cut and paste code instructions would be greatly appreciated. Thanks!
-
-
I’m hosted at wp.com, and I know I can’t into the CSS code. I was hoping there’d be something I could use when I edit the text widget from the widgets page.
-
Nope, nada. As far as I know for changing the way widget titles are displayed you can change the template you use or buy the CSS upgrade, that’s it.
-
-
Well that’s annoying. It’s not a glaring issue, but enough to be annoying.
Thanks for the help!
-
I see you’re using a < br > and two & nbsp ; s to make the text widgets appear the same as the others. Have you looked at the source HTML though? The other widgets only use an < em > < /em > pair. Try that and it’ll display the way you want.
Quote from the CSS of the Blix theme you use:
#subcontent h2 em {
display:block;
padding:5px 10px;
font-style:normal;
}See?
-
Thanks so much! The length of the green boxes still aren’t quite right, but at least my text is now centered properly, which is good enough for me.
-
Hmm, strange.. It looks like a bug in the theme. Unlike other widgets, text widgets are placed inside an extra < div >, for no apparent reason. I’m not sure if you should report it to WordPress.com support or the theme author directly.
- The topic ‘Text widget heading’ is closed to new replies.