Logged In Menu and Main Menu

Home Forums Legacy Support Support queries How-to & Troubleshooting Logged In Menu and Main Menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #184927
    wijihatmoko
    Spectator
    I want to add instruction course short cut http://prntscr.com/ljm6gb in here : http://prntscr.com/ljm5gj and menu http://prntscr.com/ljm75b   What is the code to add the logged in menu and code to add in main menu?      
    #184998
    Diana
    Participant
    Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php add_action('wplms_logged_in_top_menu','loggedin_login_panel'); function loggedin_login_panel($loggedin_menu){ global $current_user; $loggedin_menu['custom']=array( 'icon' => 'icon-exclamation', // Grab icon code from here : yoursite.com/wp-content/themes/wplms/css/icons-reference.html 'label' => __('Instructing Course','vibe'), 'link' => 'http://yoursite.com/members/'.$current_user->user_login.'/course/' ); return $loggedin_menu; } Change yoursite.com with the site URL and you need not to add anything as a menu in the LMS > Settings > loggedIn-Menu. This code will automatically set the menu in the loggedin menu To add this in main menu:- Go to wp-admin > Appearance > Menus > Top Right corner > Screen Options > check the checkbox of BuddyPress, you will get this add the course in the main menu refer: http://prntscr.com/lk3pez http://prntscr.com/lk3q3w  
    #185291
    wijihatmoko
    Spectator
    This http://prntscr.com/lk3q3w is to ads the my course link to menu.   I want to add the instructor courses link to main menu for instructor. Can I do that?
    #185317
    Diana
    Participant
    @wijihatmoko We don't have any action hook in the main menu. That's why I cannot use any custom code to show something in the header. So I have shared another alternative to redirect the user to the course instead of instructing courses
    #193250
    tptomek
    Spectator
    Hello! I need a custom links in logged menu for: - dashboard - notification - courses for example: profil is {{userprofile}} Thanks for all, regards Tomasz
    #193328
    logan
    Member
    Hey,   Welcome to WPLMS forums. Please create your own topic , it is considered impolite when you start replying on other's support topic. Please refer this tutorial on how to create topic: https://vibethemes.com/documentation/wplms/knowledge-base/how-to-create-a-support-topic-in-new-wplms-forums/ *** for the Issue: https://wplms.io/support/knowledge-base/customise-profile-menu-dropdown-wplms-2-6/ Also make sure you create topic in relevant support forum only. Regards.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Logged In Menu and Main Menu’ is closed to new replies.