Sharepoint Designer 2013 - How to add a web part zone?

Sergiu Tripon picture Sergiu Tripon · Jan 26, 2014 · Viewed 22.4k times · Source

I have a problem in Sharepoint 2013.

I'm using Designer 2013 and I'm trying to add another web part zone. As you can see from the picture, there is a web part zone to the left. I know how to decrease the width of the web part zone, so there's space for another. But I don't know, how to actually add a new web part zone.

Designer 2013 doesn't have design view.
Does anyone know how I could add a web part zone to the right this time?

Thanks in advance.

The problem

Answer

vapcguy picture vapcguy · Jul 15, 2015

You can add it manually if that "Web Part Zone" button is greyed out in SP Designer:

<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>


<WebPartPages:SPWebPartManager id="m" runat="Server"/>
<div data-name="WebPartZone">
    <div xmlns:ie="ie">
        <WebPartPages:WebPartZone runat="server" ID="x0e5f5212505f48a9aac43df13eeae4f9" AllowCustomization="True" AllowPersonalization="False" FrameType="TitleBarOnly" LockLayout="True" Orientation="Vertical">
            <ZoneTemplate>
               <!--DC: Replace this comment with default web parts for new pages. -->
            </ZoneTemplate>
        </WebPartPages:WebPartZone>
    </div>
</div>

Source: Microsoft (2015). How to: Add a Web Part zone snipped in SharePoint 2013. https://msdn.microsoft.com/en-us/library/office/jj862341.aspx