Hide “Sign In” LInk – SharePoint 2013

If you want to hide the Sign in Link which is displayed into the welcome control, what you have to do is to put the Welcome control into some div and assign ID to that div. After that use style=”display:none” in that div. Now the main thing is to put below code after the closing of the welcome control div

<Sharepoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl” runat=”server” PermissionsString=”AddAndCustomizePages”>


document.getElementById(“id of div containing welcome control”).style.display = “block”;


What the above code is doing is displaying the welcome control div to only users having”AddAndCustomizePages” permissions and not users having least permission on site.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s