ELGG login page issue

Hello Guys,

Need sincere help...im new to this....how to get rid of menubar and search bar from login page...i just want login screen and social logins..plz help

  • Use hooks:

    //Hiding search bar for non-logged users

    if(!elgg_logged_in()) {

    elgg_unextend_view('page/elements/header', 'search/header');

    //Hiding site menu' items for non-logged users

    $items = array('activity','blog','bookmarks','file', 'groups');
    foreach ($items as $item) {
    elgg_unregister_menu_item('site', $item);


    Don't dublicate the similar questions