How to Hide Column Headers in SharePoint List View Web Parts using CSS, jQuery?

I was looking for some ways to hide SharePoint list view column headers today. Here are my findings:

  1. You can use CSS to hide column headers
  2. Use JavaScript/jQuery to Hide column headers
  3. You can edit the page in SharePoint designer and remove column headers

Hide Column Headers of All List View using CSS in SharePoint 2010-2013-2016:
Insert a CEWP just below your list view web part, and place this code in it.

<style type="text/css"> 
    display: none 

This will hide all list view web part headers.

Hide Column Headers in List View Web Parts

The headers of your web part should now be hidden. The above code hides the headers of every web part on the page. It’s helpful when the page contains a web part using boxed style list views.

You can also hide specific web part’s header using this CSS:

#WebPartWPQxxxx .ms-viewheadertr 
    display: none 

Where xxxx is the web part ID. Use IE Toolbar/Firebug to find it.

jQuery to find and Hide specific Web Part Headers:

<script language="javascript" src="" type="text/javascript"></script> 
<script language="javascript" type="text/javascript">
    $("table[summary='LIST NAME'] tr:eq(0)").hide();

Don’t forget to change the LIST NAME in the above code!

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

3 thoughts on “How to Hide Column Headers in SharePoint List View Web Parts using CSS, jQuery?

  • Thanks, how does this work in CSS if i only want to hide the headers of empty lists?
    To hide the empty text in lists i use “.ms-list-emptyText-compact {display: none;}”

  • CSS worked wonderfully, thanks!

  • Thanks! CSS works like a charm!


Leave a Reply

Your email address will not be published. Required fields are marked *