• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

eleven40 pro – Adding Login/Logout in Primary Menu

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › eleven40 pro – Adding Login/Logout in Primary Menu

This topic is: resolved

Tagged: Eleven40-Pro

  • This topic has 10 replies, 4 voices, and was last updated 8 years, 8 months ago by wbxpress.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • July 4, 2014 at 5:45 am #112951
    wbxpress
    Member

    Hi,

    I would like to add "Login" or "Logout" link (depending upon the logged in status) at the Primary Menu in eleven40 pro theme. Can anybody please help me with this?

    Regards

    http://wbxpress.com
    July 4, 2014 at 11:17 am #112973
    DTHkelly
    Member

    http://wpsmith.net/2011/genesis/how-to-add-a-loginlogout-link-to-your-wordpress-genesis-custom-menu-based-on-menu-location/
    http://www.binaryturf.com/wordpress-tip-how-to-add-login-logout-link-to-wordpress-menu/

    http://www.rfmeier.net/add-a-custom-primary-nav-extras-within-genesis/

    These free plugins may help:
    https://wordpress.org/plugins/theme-my-login/
    http://wordpress.org/plugins/nav-menu-roles/

    July 7, 2014 at 9:04 am #113213
    Davinder Singh Kainth
    Member

    Check this - http://coolestguidesontheplanet.com/adding-loginlogout-existing-menu-wordpress/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    July 7, 2014 at 2:31 pm #113255
    wbxpress
    Member

    With the above tutorial the Login/Logout link appears in the menu BUT it is not showing in the same line. Is there any fix for this?

    July 7, 2014 at 11:34 pm #113323
    wbxpress
    Member

    Finally, I got a perfect solution from the following link:-

    http://xparkmedia.com/blog/add-login-logout-link-menu/

    July 8, 2014 at 3:55 am #113346
    Brad Dalton
    Participant

    @wbxpress

    Here is the ultimate guide to adding a login / logout link to any nav menu in any theme http://wpsites.net/wordpress-tips/add-login-logout-link-to-any-nav-menu/


    Tutorials for StudioPress Themes.

    July 8, 2014 at 6:42 am #113368
    wbxpress
    Member

    @braddalton: Thanks for your link. It is working for "wp_nav_menu_items" in my case (using eleven40-pro). But, it is not working in other two cases viz. "wp_nav_menu_primary_items" and "wp_nav_menu_secondary_items".

    July 8, 2014 at 7:40 am #113387
    Brad Dalton
    Participant

    Needs to exactly match the names of your menus.


    Tutorials for StudioPress Themes.

    July 8, 2014 at 7:48 am #113388
    wbxpress
    Member

    I have two menus named "header" and "social" which are primary and secondary menu respectively. So, do I need to replace

    wp_nav_menu_primary_items

    with

    header

    in the code you provided.

    July 8, 2014 at 8:06 am #113391
    Brad Dalton
    Participant

    Did you read the post i linked to?

    I have already answered that question at the end of the post.


    Tutorials for StudioPress Themes.

    July 8, 2014 at 9:36 am #113415
    wbxpress
    Member

    I read your post once again. I am sorry, I still could not follow your guidance.

    I have tried modifying filter name with 'wp_nav_menu_primary_items'. But no luck.

    What else does eleven40-pro use to denote primary menu? i guess it is, 'wp_nav_menu_primary_items'. but it is not working with my site. May be, customization of eleven40-pro's stylesheet resulted such problem for me.

    P.S. I have not tested the code in a fresh eleven40-pro theme.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble