Skip to main content
deleted 588 characters in body
Source Link
M_kul
  • 131
  • 1
  • 7

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs:

 <style type="text/css">
    #contentBox  {margin-left: 20px !important;}
    #SearchBox {display:none;}
    #suiteBarTop {display:none !important;}
    #s4-ribbonrow{display:none !important;}
</style>
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask">
    <style type="text/css">
        #suiteBarTop{display:block !important;}
        #s4-ribbonrow{display:block !important;}
    </style>
</Sharepoint:SPSecurityTrimmedControl>

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs:

 <style type="text/css">
    #contentBox  {margin-left: 20px !important;}
    #SearchBox {display:none;}
    #suiteBarTop {display:none !important;}
    #s4-ribbonrow{display:none !important;}
</style>
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask">
    <style type="text/css">
        #suiteBarTop{display:block !important;}
        #s4-ribbonrow{display:block !important;}
    </style>
</Sharepoint:SPSecurityTrimmedControl>
added 584 characters in body
Source Link
M_kul
  • 131
  • 1
  • 7

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs:

 <style type="text/css">
    #contentBox  {margin-left: 20px !important;}
    #SearchBox {display:none;}
    #suiteBarTop {display:none !important;}
    #s4-ribbonrow{display:none !important;}
</style>
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask">
    <style type="text/css">
        #suiteBarTop{display:block !important;}
        #s4-ribbonrow{display:block !important;}
    </style>
</Sharepoint:SPSecurityTrimmedControl>

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs:

 <style type="text/css">
    #contentBox  {margin-left: 20px !important;}
    #SearchBox {display:none;}
    #suiteBarTop {display:none !important;}
    #s4-ribbonrow{display:none !important;}
</style>
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask">
    <style type="text/css">
        #suiteBarTop{display:block !important;}
        #s4-ribbonrow{display:block !important;}
    </style>
</Sharepoint:SPSecurityTrimmedControl>
Source Link
M_kul
  • 131
  • 1
  • 7

hide ribbon and suite bar based on user type in sharepoint 2013 site

I have a site with a group "owners" and "members". I do not want members to have access to the ribbon or the the suite bar what do I have to modify in the master page to do that I believe I have found the correct section of the master page. I believe I should use the command:

<SharePoint:SPSecurityTrimmedControl> around the <div id="s4-ribbonrow"> element but I do not know how to correctly apply this. Everything I have tried so far results in an error on the site

</SharePoint:AjaxDelta>
        <div id="ms-hcTest"></div>
        <div id="s4-ribbonrow" >
        <div id="globalNavBox" class="noindex">
    <div id="ribbonBox">
    <div id="s4-ribboncont">
        <SharePoint:AjaxDelta id="DeltaSPRibbon" BlockElement="true" runat="server">
            <SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
            <SharePoint:SPRibbon
                runat="server"
                PlaceholderElementId="RibbonContainer"
                CssFile="" >
                <SharePoint:SPRibbonPeripheralContent
                    runat="server"
                    CssClass="ms-core-defaultFont ms-dialogHidden"
                    Location="TabRowLeft">
                </SharePoint:SPRibbonPeripheralContent>
                <SharePoint:SPRibbonPeripheralContent
                    runat="server"
                    Location="TabRowRight"
                    ID="RibbonTabRowRight"
                    CssClass="s4-trc-container s4-notdlg ms-core-defaultFont">
                    <SharePoint:SPSharePromotedActionButton runat="server"/>
                    <SharePoint:DelegateControl runat="server" ControlId="PromotedActions" AllowMultipleControls="true" />
                    <SharePoint:SPSyncPromotedActionButton runat="server"/>
                    <SharePoint:PageStateActionButton id="PageStateActionButton" runat="server" Visible="false" />