• Resolved khunmax

    (@khunmax)


    Hi

    I currently have a link to the LP user profile page in my main nav menu. I am using the IF Menu plugin to only show the link when a user is logged in. I want to keep my plugin count down, so is there any way to show a profile link in the nav menu for a logged in user, in the LP settings, or alternatively can you supply a code snippet that I can run in my functionality plugin to acheive this.

    Kind Regards

    Max

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Please try to update plugin version 2.1.9 then let me know how it goes.

    Regards,

    Hien.

    Thread Starter khunmax

    (@khunmax)

    Hey

    Thanks very much for your email.

    I have installed your latest update and note that there is now an checkbox in the settings to add a link from the profile page to the admin bar.

    However, this is not what I am after.

    I want to display a link to the profile page in the main nav menu and I want to be able to add a font awesome icon (fa-user) just before the link. My theme already comes with font awesome installed.

    I only want the link to the LP profile page to display when a user is logged in.

    Kind Regards

    Max

    • This reply was modified 7 years, 5 months ago by khunmax.
    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi khunmax,

    Please check this solution:

    1. Add a custom link to your main navigation menu.

    This link is to the LP profile page (example.com/lp-profile/)

    Then set up the fa-user icon for this menu item ??

    2. Clearly you want to show this link after users logged in, so please use a custom CSS to hide the link when users not logged in. For example:

    .the-menu-item-class {
    display: none;
    }
    
    .logged-in .the-menu-item-class {
    display: block;
    }

    WordPress defined class .logged-in when users logged in.

    Please try and let me know.

    Cheers!!!

    Thread Starter khunmax

    (@khunmax)

    Ken

    Thank you very much for providing the simple CSS code above.

    Your solution worked perfectly.

    Kind Regards

    Max

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Glad to hear that Max ??

    Hope you like LearnPress LMS plugin and consider rating it a 5 stars too ??

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Profile link in main menu’ is closed to new replies.