marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

clear:both missing in ".menu"-div #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the div with the class menu needs to have a block element at the end that
clears the float from the superfish menus.

I used this code to solve the problem:
(of course my css contains a the class "clear" which does a "clear: both")

{{{
// Add clearing div to last </ul> occurence in wp_page_menu
function thematic_add_menuclear($ulclass) {
    return preg_replace('/<\/ul><\/div>/i', '</ul><div
class="clear"></div></div>', $ulclass);
} // end thematic_add_menuclear
add_filter('wp_page_menu','thematic_add_menuclear');
}}}

Original issue reported on code.google.com by arne.fra...@gmail.com on 16 Apr 2010 at 9:51

GoogleCodeExporter commented 9 years ago
maybe a clearfix?

Original comment by helgathe...@gmail.com on 18 Jan 2012 at 12:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
A child theme can add empty divs to clear or add clearfix as they see fit.  

Original comment by eugene.m...@gmail.com on 26 Jan 2012 at 5:41