Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP How to Build a WordPress Theme Extending WordPress Template Functionality Adding Widgets to Our Footer

Jason Bradley
PLUS
Jason Bradley
Courses Plus Student 7,219 Points

Dribbble plugin CSS override

The dribbble plug-in, as of today, includes a title which comes with <h3> tags. This causes the CSS to format inconsistently. What is the best way to modify the CSS to the widget titles are consistent? I have a screenshot but I'm not clear as to whether I can include that with a question.

1 Answer

Héctor Muñoz
Héctor Muñoz
18,383 Points

I think the best way to fix it is going to Plugins -> Installed plugins -> Dribble -> Edit Then, find and replace this:

if (!empty($items)): ?>
<!-- Custom Dribbble Widget Title -->
<h3><?php if(!empty($widgetTitle)) : echo $widgetTitle; else : echo 'Dribbbles'; endif; ?></h3>

to:

if (!empty($items)): ?>
<!-- Custom Dribbble Widget Title -->
<h5><?php if(!empty($widgetTitle)) : echo $widgetTitle; else : echo 'Dribbbles'; endif; ?></h5>