• Resolved jassyjas

    (@jassyjas)


    Hey – I’m ‘trying’ to create a tiny ‘menu’ either above my main header or just below . The objective of this is to say…

    “You are logged in as ‘useremailaddress'” OR “Login HERE to book” depending upon whether the user is logged in or not…
    I’ve been playing around with menu’s and short codes for hours without much luck. The closest thing is the WP Member Widget but this is WAY too big for what I want. I’m looking for similar to the woocommerce above nav that shows MyCart and Account in simple text.
    Any help much appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    It sounds like what you are describing would be to put something in a menu? WP does not directly support shortcodes within a menu (which is why that wouldn’t work).

    The options that do work are to either use some custom jquery to change your menu item if the user is logged in, or to do the same thing by creating a filter function using wp_nav_menu_items.

    A third option will be available in the 3.2.0 version of the plugin as what was formerly a premium extension for creating different logged in/logged out menus will be incorporated into the core plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘ShortCodes for login menu’ is closed to new replies.