3

I've been building an intranet at work using Sharepoint, and I've been trying to figure out how to have a larger search bar on modern web pages, like you could on classic pages with the Search Bar web part. I read that modern pages have no such equivalent web part, so I was wondering if instead I could create classic pages that use classic web parts on modern sites?

1

From your description, it seems that you want to use both the modern pages and classic pages in SharePoint Online.

If yes, I think you can achieve that via he following steps.

a. Navigate to a library.

b. Click Return to classic SharePoint>Settings>Site contents>Site Pages>New to create a classic page.

c. If you click Settings>Add a page, you can still create a modern page.

  • Not sure why you were down-voted but up you go. I'm working in a classic environment but with the push of "Team Site" and "Team Site (Classic)" I wanted to play with the optimizations and see how much performance gain we could get. By going to the library and creating a page it immediately went into classic. Thank you. – Yugo Jan 16 at 19:04
1

Could I create classic pages that use classic web parts on modern sites?

Unfortunately, it's not supported to add a classic web parts on modern pages!


These customizations are currently not supported for "modern" pages:

  • Adding "classic" web parts on "modern" pages
  • Custom CSS via AlternateCSSUrl web property
  • Custom JavaScript embedded via user custom actions (see note on SharePoint Framework Extensions)
  • Custom master pages (more extensive branding will be supported later using alternative options)
  • Minimal Download Strategy (MDS)
  • Modern pages inside of the Site Template package (Save site as a template)

For more details, check Customizing "modern" site pages

  • I think you didn't get the question completely, he doesn't want to use classic web parts on modern sites, rather to be able to add a classic page into a modern site. – Yugo Jan 16 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.