Friday, December 4, 2015

Hiding the View Library from the pop up box in the search results page

When you hover on any Search Result in Result page you get some option like Open, Send, Follow, View Library.

I have a requirement to hide the View Library Button from the Search result popup.

I looked for many option but i found a simple solution on MSDN article.

Just Place a CSS script by Content Editor Web part on the Result page and this solves my problem

Here is script.

<style type="text/css">
div.ms-srch-hover-action > a[clicktype='ActionViewLibrary'] {
   display:none;
}
</style>

No comments:

Post a Comment