I have created a SharePoint Master page by converting an HTML File. The conversion was successful. After the conversion there should be 1 pair of files with .html & .aspx extensions.

Unfortunately after the conversion I got an .html file and a .master file.

I found this issue when I tried to add a SharePoint Search Box Web Part using SharePoint Designer 2013 to the custom master page and also I got the below message too.

The message's screenshot

The message's screenshot

  • 1
    Isn't the expected behavior to get a .master file? .aspx files are used for page layouts and other pages, not master pages. See for example here: c-sharpcorner.com/UploadFile/58e23e/… Commented May 15, 2017 at 11:07
  • OK I accept that. But I want to add web part to the Custom MasterPage. Exactly the 'Search Box' web part. How can I get that done? When I tried to add that and I got the above mentioned message.
    – ChiranSJ
    Commented May 15, 2017 at 11:09
  • Do you want to add your custom webpart on the master page or existing SharePoint webpart on it?
    – Hardik
    Commented May 15, 2017 at 11:26
  • I want to add one of SharePoint WebParts to the MasterPage
    – ChiranSJ
    Commented May 15, 2017 at 11:27
  • Add that webpart in any of the page, Open SharePoint designer & copy the XML code of that webpart. Go to your page layout & edit it in designer & paste that code.
    – Hardik
    Commented May 15, 2017 at 11:49

1 Answer 1


I have found the solution. I just have to add the webpart using the 'Design manager's', 'Edit Master Pages' option.

Thanks for your help!


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.