Opened 12 years ago
Closed 12 years ago
#21430 closed defect (bug) (invalid)
Text widget puts a space in <h3> </h3> if title empty
Reported by: | rulatir | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4.1 |
Component: | Widgets | Keywords: | |
Focuses: | Cc: |
Description
If the title of a text widget is left empty, the HTML output contains space in the <h3> </h3> tag. This causes the heading to occupy space if h3 is given margins by the stylesheet (which is normally the case). This in turn fights the intended layout. Fix it please!
Change History (3)
#2
@
12 years ago
- Keywords close added
Thanks for quick response! You were right, ET are the culprit. From DailyNotes/epanel/custom_functions.php:
add_filter('widget_title','et_widget_force_title'); function et_widget_force_title( $title ){ #add an empty title for widgets ( otherwise it might break the sidebar layout ) if ( $title == '' ) $title = ' '; return $title; }
Brilliant. Fortunately a filter with priority 20 will undo this. Resolved/invalid.
Note: See
TracTickets for help on using
tickets.
Which theme did you use? Any plugins active?
From
default-widgets.php
:So, there shouldn't be any title output if the title field is empty.