SharePoint 2013: Edit the layout of MySite Person.aspx
via Delegate control
Problem: Hide the actity title on Person.aspx (mySite).
Solution: Inject your code on Master Page(mysite.master) in a Delegate control i.e. AdditionalPageHead. The following series of steps will guide you how to proceed;
- Create an Empty SharePoint Project using VS.Net.
- Add a user control (.ascx) to your project.
- In my case, it was a css class applied to the div on person.aspx and I have to hide it. So, I wrote the following inline style sheet in the user control(.ascx);
- Now, add an empty Elements.xml and reference the delegate control by providing its id in it. In my case, I have decided to inject my code in 'AdditionalPageHead' delegate control that already exist in‘mysite.master’;
- The following is how my test visual studio project looks like;
- That’s it.. Deploy your solution and activate the webapplication scoped feature. Once the feature is activated, css added on the user control will be injected to the delegate control present on the mysite.master master page. The following is the result in my case.. :)



