[Twenty Ten] Replace Menu (4 posts)

  1. renato6
    Posted 4 years ago #

    i want to replace the menu in the theme Twenty Ten with other that i have in jquery.

    Anyone can help me do that?
    Tell me the files i have to modify?
    I'm a bit lost and i couldn't find anything on the web.

  2. Sugar Apple
    Posted 4 years ago #

    open header.php
    line 85
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

    code above to call menus function

  3. Child themes remain my favorite WordPress feature. ;)

    Recycling a reply from earlier:

    Don't modify the header.php file in the original twentyten directory. If the theme has an update, you will lose your changes.

    Instead create a child theme of Twenty Ten and make a copy of the themes/twentyten/header.php file and modify it there. That's a safer approach and your menu code changes will remain intact.

  4. renato6
    Posted 4 years ago #

    I'm already using a child theme ;)

    Thanks for the lines blacklizt, i will see what i can do

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.