How to remove blank space around the web part in SharePoint 2013

Extra space is added to SP webpart by default. It is very unuseful when you organize page content. To remove the extra space injected to the webpart, add the below css in Content Editor webapart on your page.
<style type="text/css">
     .ms-webpartPage-root {
         border-spacing: 0px !important;
     }
       .ms-webpartzone-cell {
         margin: 0px !important;
     }
 </style>

Cannot display the webpage while creating a Web Application in SharePoint

I recently ran into an issue when creating a new web application on SharePoint 2013.  Everything looks fine until the dialog box displayed “Internet Explorer cannot display the webpage”.  I did a little research and found what was the problem. To resolve the issue do the following:

 

  1. Open IIS manager.
  2. In the tree view, open the server name and click on Application Pools.
  3. Locate the SharePoint Central Administration v4 application pool. Right click on it and choose Advanced Settings.
  4. In the Process Model section, set the Shutdown Time Limit to a greater value. As an example, 500.
  5. Restart IIS.

How to change ‘ms-core-brandingText’ using PowerShell in SharePoint 2013

PowerShell scripting?  Isn’t that just a server thing for high level admins? It is true, but many things could be done with simple PowerShell scripts just in a few minutes and without previous knowledge.

  1. Create the following script in a plain text editor such as Notepad and save with a .PS1 extension (replace $Text content with your own)
     $WebAppUrl='http://sp2013-01:2525' $Text = '&lt;div&gt;&lt;a style="color:#FFFFFF" href="http://sp2013-01:2525"&gt;IntraNELT&lt;/a&gt;&lt;/div&gt;' Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $webApp = Get-SPWebApplication $WebAppUrl $html = "&lt;div class='ms-core-brandingText'&gt;"+$Text+"&lt;/div&gt;" $webApp.SuiteBarBrandingElementHtml = $html $webApp.Update()
  2. Start SharePoint 2013 Management Shell as admin, and run the script by entering the full path to the script (c:\scripts\script.ps1), or if it’s in the current directory, prefix it with a period followed by a backslash (.\script.ps1). If the path to the script contains a space, enclose the full path in quotation marks and prefix the entire thing with an ampersand (for example: &”C:\scripts\script.ps1″).
  3. Let’s now go and check out our title on SharePoint page.