Hide default share point icon from ribbon
$(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");
}
<style>
.ms-core-menu-list li:first-child{
display: none;
}
.ms-core-menu-list li:last-child{
display: none;
}
</style>
$(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