Search code examples
sharepointwss-3.0

How to hide the "! NEW" tag on a sharepoint list without affecting lists contained in the site?


Does anybody know if it is possible to hide the "NEW" label that gets appended to the Title field of a new SharePoint list item?

I have a nightly script that copies a list from one site to another site list and don't need the NEW to show up.


Solution

  • If you just want to remove them image from a single view or page rather than every list in the web application what you can use the favourite tool of SharePoint UI hackers everywhere - the Content Editor Web Part (CEWP) along with javascript/jquery/css.

    In this case its easy, only CSS required.

    For SharePoint 2010

    The New image is displayed as so

    <IMG class="ms-newgif" title="New" alt="New" src="/_layouts/1033/images/new.gif">
    

    So if you add the following style into a CEWP (you have to use the HTML Source View, rather than the Rich Text Editor).

    <style>
      IMG.ms-newgif {display:none;}
    </style>
    

    The New image will be hidden.

    WSS3 and SharePoint 2007

    The CSS is a little more complex

    <style>
        TABLE.ms-unselectedtitle TD.ms-vb IMG {display:none;}
        TABLE.ms-selectedtitle TD.ms-vb IMG {display:none;}
    </style>