0

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/… – Robert Lindgren May 15 '17 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 May 15 '17 at 11:09
  • Do you want to add your custom webpart on the master page or existing SharePoint webpart on it? – Hardik May 15 '17 at 11:26
  • I want to add one of SharePoint WebParts to the MasterPage – ChiranSJ May 15 '17 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 May 15 '17 at 11:49
0

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!

Chiranthaka

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.