Enable-PnPResponsiveUI

Activates the PnP Response UI Add-on

Syntax

Enable-PnPResponsiveUI
      [-InfrastructureSiteUrl <String>]
                            [-Web <WebPipeBind>]
                            [-Connection <SPOnlineConnection>]

Description

Enables the PnP Responsive UI implementation on a classic SharePoint Site

Examples

------------------EXAMPLE 1------------------

Enable-PnPResponsiveUI

Will upload a CSS file, a JavaScript file and adds a custom action to the root web of the current site collection, enabling the responsive UI on the site collection. The CSS and JavaScript files are located in the style library, in a folder called SP.Responsive.UI.

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-InfrastructureSiteUrl

A full URL pointing to an infrastructure site. If specified, it will add a custom action pointing to the responsive UI JS code in that site.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.

Type:WebPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False