Widget Titles Are Unstyled
-
Hi
Any Custom Sidebar is rendered without a class and/or styling on the Widget Header. Please can you fix this as otherwise targeting the widget title/header is almost impossible without hacks.
Thanks
Glennyboy (wpmu client)
-
Hi @glennyboy,
I hope you’re well today!
I’ve just tested this and couldn’t really see what you might be referring to. I see custom sidebar widgets as having the same basic classes as normal widgets.
The widget headers for example have the following:
h3.widget-title
Is there some specific setup where you’re not seeing that class? Or perhaps I’ve misunderstood something here?
I’d love to look more into this if you’ll elaborate.
Thanks,
DavidHi
Yes that’s what I mean. I’m not getting any widget titles outputted correctly. This is an example:-
<div id="brpwp_wrapper-2"> Latest from the Newsroom <ul class="no-bullets"> <li id="brpwp_140" class="post-140 post type-post status-publish format-standard hentry category-news"> ..... </li> </ul> </div>
You will see that the title ” Latest from the Newsroom” has not styling whatsoever. I’ve tried a different sidebar plugin and it works fine.
Perhaps I can PM you a link to view?
Thanks
GlennyboyHi @glennyboy,
Thanks for looking into that. I can’t seem to replicate that here, though I do see what you’re saying.
I’m actually seeing the headers fully wrapped in h3 tags like so:
https://drive.google.com/file/d/0B7bdY1zZi8JecTUzeV9IUElaOVE/edit?usp=sharingCould I ask for you to try using a default them (Twenty Fourteen) and deactivating other plugins to ensure there’s not a conflict at play there?
Thanks,
DavidHi
I tried applying to Twenty Fourteen and earlier base Themes bury I don’t think this plugin supports them (or vice versa)?
Anyway on delving a bit deeper into the Widget settings I noted that you can specify title tags under ‘Edit’ in an existing Widget. I added:-
<h3 class="widget-title"> </h3>
in the respective before and after and this replaced the missing elements. I’m not sure if this is required and I stupidly missed it, but perhaps consider using the default widget title values automatically unless something else is specified?
Thanks
Glennyboy
Hi @glennyboy,
Thanks for your reply and I’m really glad that’s working for you, manually adding that in. I should have though to mention that previously.
But by default, I’m able to see the respective h3 tags along with the default widget-title class.
I’d love to know what might have happened in your site’s case, but I’m really glad that’s at least working when you add them in.
Cheers,
DavidHi
They certainly don’t appear by default, but the above is a solution of sorts.
Just to let you know the Theme I was using is Pagelines DMS – just in case others are experiencing the same or if anyone can spread any light on it.
Regards
Glennyboy
Thanks for mentioning the theme, @glennyboy. Not a theme I’ve been able to test with myself.
But other themes I’ve tested with, I haven’t noticed that particular issue with.
Cheers,
David
- The topic ‘Widget Titles Are Unstyled’ is closed to new replies.