Wednesday, November 8, 2017

Hide the "Follow" link on the hover panel for people search results

I had a request recently to hide the "Follow" link shown on the hover panel for people search results. Upon trying a number of different ideas, I found the easiest way to accomplish this task is to modify the display template associated with this functionality. See steps below.

1. At your search center site, go to Site Settings, and click on Master pages and page layouts under the Web Designer Galleries section.

2. Click on Display Templates > Search, and find the Item_Person_HoverPanel.html file. Download a copy of this file to your desktop.

3. Edit the file in notepad, and comment out the following line.

<div class="ms-calloutLink ms-uppercase" id="_#= followId =#_"></div>

My blog posts have been few and far between lately as I have been super busy pursuing an MBA at my dream school - Notre Dame. After finishing, I will post more!