ThemeShaper Forums » Thematic

Adding home to menu loses default styling

(6 posts)
  • Started 2 years ago by helgatheviking
  • Latest reply from WraithKenny
  • This topic is resolved
  1. Using Ian's snippet from here:

    http://themeshaper.com/forums/topic/how-to-add-a-home-link-to-your-child-theme-menu#post-1761

    // Add a home link to your menu
    function childtheme_menu_args($args) {
        $args = array(
            'show_home' => 'Home',
            'sort_column' => 'menu_order',
            'menu_class' => 'menu',
            'echo' => true
        );
        return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    is it just me (i'm using 0.9.6.3 SVN 654) or does the first ul lose it's .sf-menu class that gives it all the default styling?

    Posted 2 years ago #
  2. reverted to Thematic 0.9.6.2 and that does solve the issue w/ the ul class. it raises a different question tho... if i don't set the depth parameter in the arguments then ALL my pages get thrown into the menu w/ no hierarchy. So if Contact Us is a child of About Us, then they are both displayed as top level links when I use the snippet to add home to the menu.

    Posted 2 years ago #
  3. I'm having the same problem with losing styling. Also unable to exclude pages or show home. Reverting to 0.9.6.2 fixes the problem but has this ever been resolved for 0.9.7.6?

    Posted 1 year ago #
  4. em hr
    Moderator

    Hi greg,

    Out of the box the current release 0.9.7.6 will style the menus properly. This does not account for what may be interfering from a previous implementation of the menu functions in a child-theme's functions.php

    -Gene

    Posted 1 year ago #
  5. where can I get 0.9.6.2? I need my menu fixed.

    Posted 1 year ago #
  6. a specficity problem, the prior versions overwrote the menu's a style with .sf-menu a {} but now thematic overwrites your overwrite with .windows .sf-menu a {}. so adjust the child sheet apropriately, thanks.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.