Title: Menu
Last modified: August 31, 2016

---

# Menu

 *  Resolved [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/)
 * You know you have the nav menu under the logo
 * I know you can change it so it’s above the logo, but is there a way to keep it
   where it is, but add an additional menu above the logo?
 * Possibly one where I can add a register/login link on?

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258152)
 * Hi there,
 * The hard way (but free) would be to add HTML to the theme using one of the hooks:
   [https://generatepress.com/knowledgebase/hook-list/](https://generatepress.com/knowledgebase/hook-list/)
 * The easy way would be to use our Secondary Navigation add-on, which does it all
   for you.
 * Let me know if you need more info 🙂
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258406)
 * I’ve got a custom shortcode plug in
 * This is my class
 *     ```
       .login_menu {
         background-color: #333333;
         font-size: 10px;
         color: #FFFFFF;
         padding: 5px 5px 5px 5px;
         text-align: right;
       }
       ```
   
 * This is my code
 *     ```
       <div class="login_menu">
        <table>
         <tr>
          <td><?php wp_register(); ?> / <?php wp_loginout(); ?></td>
         </tr>
        </table>
       </div>
       ```
   
 * Which has been shortcoded to
 * `[sc name="Top Menu Login"]`
 * So in my custom php I have
 *     ```
       add_action( 'generate_before_header','rlmenu' );
       function rlmenu()
       {
   
           echo do_shortcode( '[sc name="Top Menu Login"]' );
   
       }
       ```
   
 * Will this work?
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258408)
 * OK I tried that and it looks a bit fat, like i’ve added too much padding.
 * Also the register and login/logout links I expected to appear aren’t appearing
 * also it’s not right aligned.
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258409)
 * i changed padding: 5px 5px 5px 5px; to padding: px 1px 1px 1px; but that hasn’t
   made any difference in the slightest?
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258411)
 * I wouldn’t suggest adding the table in there.
 * Something like this might be better:
 *     ```
       <div class="login_menu">
           <span><?php wp_register(); ?> / <?php wp_loginout(); ?></span>
       </div>
       ```
   
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258414)
 * Thanks tom that worked
 * i don’t think my register and login links work however because nothing gets displayed
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258417)
 * Glad it worked.
 * That might have something to do with how you set the shortcode up – make sure
   all the function names are right.
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258420)
 * `<div class="login_menu"><?php wp_register(); ?></div>`
 * This is what i have at the moment but it’s not displaying a register link?
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258422)
 * [https://codex.wordpress.org/Navigation_Menus](https://codex.wordpress.org/Navigation_Menus)
 * Do I need to edit functions.php and add another menu in there?
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258423)
 * You could if you wanted to add a menu in there.
 * As for the register link, make sure people are able to register, as it says at
   the top here: [https://codex.wordpress.org/Function_Reference/wp_register](https://codex.wordpress.org/Function_Reference/wp_register)
 * > The “Register” link is not offered if the Administration > Settings > General
   > > Membership: Anyone can register box is not checked.
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258425)
 * The anyone can register box is ticked.
 * I only want to create a text link that says Register and a text link that says
   login. and then when you’ve logged in the login link changes to welcome john (
   logout) or whatever
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258426)
 *     ```
       add_action( 'generate_before_header','rlmenu' );
       function rlmenu()
       {
       	echo ' <span class="login_menu">';
       	wp_register('','');
   
       	if( is_user_logged_in() ) {
       		$current_user=wp_get_current_user();
       		echo 'Welcome ' . $current_user->user_login . ' (';
       		wp_loginout('');
       		echo ')';
       	} else {
       		wp_loginout('');
       	}
       	echo '</span> ';
       }
       ```
   
 * This seems to work but the class only covers the register and login bits and 
   not the whole area?
 * Could it be cos i’m using span instead of divs?
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258429)
 * The class is only surrounding the register and login bits as far as I can tell?
 *  Thread Starter [johnzoro](https://wordpress.org/support/users/johnzoro/)
 * (@johnzoro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258438)
 * yeah i fixed it by changing span to div
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258444)
 * Awesome 🙂

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Menu’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [2nd menu](https://wordpress.org/support/topic-tag/2nd-menu/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [second menu](https://wordpress.org/support/topic-tag/second-menu/)

 * 15 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/menu-153/#post-7258444)
 * Status: resolved