Hello,
I hope you`re doing fine today :)
With Wplms I would like to modify the account item in the menu (see red circle in the added picture). Now it refers to the buddypress profile, however I am using Ultimate Member. How can I change the link? How can I change the dropdown items links? Or if this doesn't work how can I remove the account item (pic + name)?
Thanks in advance!
Chris
You want to remove items from the dropdown, then use this code in your wplms-customizer.php file present in your wplms customizer plugin.
add_filter('wplms_logged_in_top_menu','loggedin_profile_menu_dropdown',999);function loggedin_profile_menu_dropdown($loggedin_menu) { unset($loggedin_menu['dashboard']); unset($loggedin_menu['messages']); unset($loggedin_menu['notifications']); return $loggedin_menu;}
NOTE: Similarly you can remove other items also like gropus, settings, etc.
If you want to remove the account item (pic+username) then use this code in wplms-customizer.php file:
add_action('wp_head','custom_remove_profile_account_item',999);function custom_remove_profile_account_item(){ ?> <style>.topmenu .smallimg.vbplogin {display:none;}</style> <?php}
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Modify the Account Item dropdown’ is closed to new replies.