SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My search result page is showing list items along with list name.But i dont want list name in search result. Please advice.


share|improve this question

SharePoint Server (or Search Server Express) If running SharePoint Server (or Search Server Express) you can change the XSLT used to display the search results:

  1. Go to the search result page
  2. Put it in Edit mode
  3. On the Search Core Result Web part select "Edit Web Part"
  4. Open the Display Properties category
  5. Deselect "Use Location Visualization"
  6. Click XSL Editor
  7. Remove the following section:


<span class="srch-URL2" id="{concat($currentId,'_Url')}">  
    <xsl:when test="hithighlightedproperties/HHUrl[. != '']">  
       <xsl:call-template name="HitHighlighting">  
          <xsl:with-param name="hh" select="hithighlightedproperties/HHUrl" />   
       <xsl:value-of select="url"/>  

SharePoint Foundation
If you're running pure SharePoint Foundation, I recommend that you "upgrade" to Search Server Express if you want to use Search for anything except the most simple search on the current site.

If you stay with the pure Foundation, then you have no way of changing the XSLT, then your only option is to add css to remove the URL.

.srch-URL2 {

This can be inserted into the master page or in a Css file which is the set as AlternateCSS which can be done in PowerShell like this:

$w = Get-SPWeb http://spf-dev
$w.AlternateCssUrl = 'http://spf-dev/Style%20Library/MyCss.css'

This needs to be done on all Sites where you need it :-(

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.