Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #988863

    rekluse
    Participant

    Hello!

    I am trying to figure out how to hide the “Join” item in my nav menu if you are logged into the site.

    http://everyoneisright.com/media/

    This code used to work for me, but for some reason seems to have stopped working:

    .logged-in .x-navbar .menu-item-293 {
        display:none !important;
    }

    Three questions:

    – Why might this no longer be working?

    – How can I get it working again?

    – Is it actually possible to set this menu item to hide using a WooCommerce Memberships trigger, rather than a general login trigger? (e.g. if you are logged into an active membership account, you will not see the “join” menu item. But if you do not have an active membership, you WILL see the menu item.)

    Thank you!

    #989094

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in!

    – The above CSS should work, make sure you’re using correct menu item class .menu-item-293

    – Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

    #1031795

    lemag
    Participant

    Hi rekluse,

    I was looking for the same thing and found a useful article on how two display a different menu for a logged-in users and a separate one for visitors. I hope this helps.

    http://www.wpbeginner.com/wp-themes/how-to-show-different-menus-to-logged-in-users-in-wordpress/

    #1032299

    Joao
    Moderator

    Hi @lemag

    Thanks so much for helping the community here 🙂

    We really appreciate it.

    All the best,

    Joao