Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
how to add a class to a child unordered list? « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

how to add a class to a child unordered list?

(2 posts)
  • Started 5 years ago by tod7
  • Latest reply from tod7
  • This topic is resolved
  1. tod7
    Member

    I've successfully added a few classes to the first ul in wp_page_menu,
    however, I haven't been able to add a class to the child ul nested in the first li.
    Anyone know what is missing?

    function add_menuclass($ulclass) {
    return preg_replace('/<ul>/', '<ul class="clearfix rMenu-hor rMenu">', $ulclass, 1);
    }
    function add_sub_menuclass($ulchildclass) {
    return preg_replace('/<ul>/', '<ul class="rMenu-expand">', $ulchildclass, 2);
    }
    add_filter('wp_page_menu','add_menuclass','add_sub_menuclass')

    I entered the tail level to "2", see:

    $ulchildclass, 2);

    I tried adding a div as 'TheFrosty' suggested in the comments on this themeshaper tutorial: http://themeshaper.com/adding-class-...ess-page-menu/, but no go.

    Can anyone help?

    Posted 5 years ago #
  2. tod7
    Member


RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183