ThemeShaper Forums » Thematic

[closed]

item menu category different than pages(WP3)

(4 posts)
  • Started 3 years ago by guyk
  • Latest reply from guyk
  • This topic is resolved
  1. guyk
    Member

    Hello

    I use this code finded on the forum (thanks for all) with the latest stable version Thematic 0.9.7.4

    function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
    }

    add_action('init','remove_thematic_actions');

    if ( function_exists( 'add_theme_support' ) ) {

    // This theme uses wp_nav_menu()
    add_theme_support( 'menus' );

    }

    function childtheme_menu() { ?>

    <div id="access">
    <div class="skip-link">">
    <?php _e('Skip to content', 'thematic'); ?>
    </div>
    <?php wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=sf-menu' ); ?>
    </div>
    <!-- #access -->
    <?php }
    add_action('thematic_header','childtheme_menu',9);

    All is OK the menu is right ,but my second item is one category and the rest Pages
    and this second item dont stay hilight like other
    excuse my poor english
    and i hope somebody have a solution
    infortunately i am working offline for now
    thanks

    guykayser

    Posted 3 years ago #
  2. Hi,

    Heads up using add_theme_support in this way is not advised

    ref: http://forums.themeshaper.com/topic/add_theme_supportmenus

    -Gene

    Posted 3 years ago #
  3. guyk
    Member

    Thanks
    i wait for the next release

    guy

    Posted 3 years ago #
  4. guyk
    Member

    Now its OK

    i put this more in style.css (http://www.designisphilosophy.com/tutorials/highlight-current-page-or-category-20100809/)

    .sf-menu .current-menu-item a,
    .sf-menu .current-post-parent a,
    .sf-menu .current-post-ancestor a,

    thanks for Thematic

    guy

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.