WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on child twentyeleven theme. I have to do three things to my child theme.

1-Using page.php coping in my child theme.I added the code in page.php at top of the code

 <?php if (is_front_page()){
        get_header( 'home' );
     else {

2-header-home.php created in child theme using header.php.

3-In header-home.php i did one replacement that nave section from bottom of header.php and put at top but inside as

<body <?php body_class(); ?>>

<div id="page" class="hfeed">
    <nav id="access" role="navigation">
                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
                <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
                <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
                <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
                <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>

                <?php wp_nav_menu( array( 'theme_location' => 'home-menu','fallback_cb' => '') );?>
            </nav><!-- #access -->

4-At my home page,menu appeared but not clicking.

5-Then I created my child functions.php.register home-menu and iteme taken from my catogry section.

Any one there have answer.


share|improve this question
what do you mean by "not clicking"? – Dharmang Jul 28 '14 at 8:52
I mean when cursor reach at top navs Named SEO,NETWORKING,PRODCT. THE NAVS BUTTON NOT PRESSED. – hamid muneeb Jul 29 '14 at 11:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.