• cunnerz

    (@cunnerz)


    Hi folks, I’m a WP newbie and have got the hang of the basics for my new website http://www.showmehobart.com.au. I’ve been reading WP for Dummies and I’m having trouble with setting up a custom menu.

    I’m using the twenty-eleven theme and would like to put a large menu that I can scroll down at the bottom of my welcome text on my home page (but not in the footer). So far I’ve only been able to put menu options in the header, footer or below the photo. Can someone please help? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • vtxyzzy

    (@vtxyzzy)

    I believe that you will need to do some coding to get what you want.

    You should create a Child theme to make your changes. If you do not, all of your changes will be lost if you update your theme.

    You will need to register a new menu location with in your functions.php. But be careful, if you make any errors, your site will be unusable and you will need to use ftp to correct the error. The code below goes in functions.php (possibly without the opening and closing php tags):

    <?php
       if ( function_exists( 'register_nav_menus' ) ) {
          register_nav_menus(
             array(
               'bottom_menu' => 'Bottom Menu',
             )
          );
       }
    ?>

    You will need to modify index.php by adding a line of code between these lines:

    <?php endif; ?>
    
       </div><!-- #content -->
    </div><!-- #primary -->

    like this:

    <?php endif; ?>
    
       <nav id="bottom-menu" ><?php wp_nav_menu( array( 'theme_location' => 'bottom_menu' ) ); ?></nav>
    
       </div><!-- #content -->
    </div><!-- #primary -->

    You will also need to edit style.css, copy all rules containing #access, and change #access in those lines to #bottom-menu.

    That should keep you busy for a while!

    Thread Starter cunnerz

    (@cunnerz)

    Thanks vtxyzzy I’ll give it a go!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Menu Problem for Newbie’ is closed to new replies.