By default we have the weather and location web parts in modern SharePoint Online site.

Weather and location web parts

How can I add the time in the weather web part for a specific location?

Where can I find the source code for the default weather web part?

Thank you!

  • Hi @Propool, does below response answers your question? Apr 10, 2023 at 11:49
  • 1
    @GaneshSanap, Thank you! This is helped me.
    – Propool
    Apr 10, 2023 at 12:35

1 Answer 1


Unfortunately, you cannot modify the SharePoint online out of the box web parts.

You have to create a new custom web part using SharePoint framework (SPFx) for your requirements.

Check these documentations for more information about SPFx:

  1. Overview of the SharePoint Framework (SPFx)
  2. Build your first SharePoint client-side web part

Also, check this GitHub repository where you can find web parts developed by community members. These will help you to get started with: SPFx web part samples

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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