Forum Discussion
Revolving Title Section-Home Page
Hi everyone,
I want to create a revolving banner in the Homepage Title Section and was considering using the PnP Modern Script Editor Web Part. I understand that modern SharePoint pages don’t support the classic Script Editor, but this PnP version seems like a workaround.
Has anyone successfully used this in the title area? Are there any limitations or better alternatives?
Thanks!
3 Replies
- JeshmaCopper Contributor
Thank you for your response, Michal.
The requirement is to have a non-static header section with the same width as the banner. When using the Hero web part, the size is different, and there doesn’t seem to be an option to customize it. Additionally, the header does not need a slideshow, but it should support a full width moving background (e.g., an auto playing video).
Do I need permission to have PnP?
- michalkornetSteel Contributor
Hi Jeshma To use it, you need permission to upload a package to the App Catalog in your tenant. You’ll need to package it as a regular SPFx web part. As for the Hero web part isn't it ok? From what I can see, it supports full-width sections.
- michalkornetSteel Contributor
Hi Jeshma , After the latest changes, the header section of the SharePoint page is now configurable. By default, it uses a Banner web part placed in a full-width section.
If you mean this webpart https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor then, as I see it, this web part can be used in full-width sections, so it seems you should be able to replace the standard banner web part with this one.
Of course, you can create your own web part using some PnP controls to have more flexibility. -> https://pnp.github.io/sp-dev-fx-controls-react/