Hide default share point icon from ribbon

hides all focus, share settings follow every thing

$(document).ready(notRequiredElement);

function notRequiredElement() {
    $("a[id$='_share_button']").css("display", "none");
    $("a[id$='_SyncPromotedAction']").css("display", "none");
    $("a[id$='_follow_button']").css("display", "none");
     $("a[id$='_SiteActionsMenu']").css("display", "none");
      $("a[id$='_TopHelpLink']").css("display", "none");
      $("a[id$='_fullscreenmodeBtn']").css("display", "none");

}


hides about me & personalize this page

<style>
                     .ms-core-menu-list li:first-child{
 display: none;
}
.ms-core-menu-list li:last-child{
 display: none;
}

                    </style>


hides the defult Browse Page option int the ribbon

$(document).ready(function() {
  $('#menu').menu();
$("#DeltaSuiteLinks").parent().hide();

$("#RibbonContainer").ready(function () {
    $("#s4-ribboncont .ms-cui-tts li").each(function () {
     if ($(this).attr('id') == 'Ribbon.Read-title' && $(this).hasClass('ms-browseTab'))
         plmHideRibbon = true;
    });
    if (plmHideRibbon)
    { 
    $("#RibbonContainer DIV.ms-cui-topBar2 UL.ms-cui-tts li.ms-browseTab[id='Ribbon.Read-title']").parent().hide(); 
   
    }
   });
   
    $("#ctl00_ctl45_site_share_button").parent().show();

});

Comments

Popular posts from this blog

My Interview Experience

React Checkbox Control SPFx