How to remove nopCommerce site news feed from the administration dashboard in nopCommerce

Many times when developers are working on any nopCommerce based websites, they like to remove the nopCommerce site news feed from the administration dashboard before delivering the project.

Today we will discuss, how to remove this news feed in the code.

nopCommerce admin news feed


In last few latest versions, the nopCommerce team added the new option/link to "Hide advertisements". But the only issue is the, this link does not hide the news feed completely. This is how it looks as final result:

nopCommerce admin news feed


In order to remove the news feed completely, the best option is to remove it from the source code. In order to do that, please go to: Nop.Web / Administration / Views / Home /  Index.cshtml

When you open the file "Index.cshtml ", look for this code:

@if (!Model.IsLoggedInAsVendor)
       {
           <td class="rightcol">
               @Html.Action("NopCommerceNews", "Home")
           </td>
       }


You can either delete the code or comment it out like this:

<!--
@if (!Model.IsLoggedInAsVendor)
       {
           <td class="rightcol">
               @Html.Action("NopCommerceNews", "Home")
           </td>
       }
-->


Make sure to "SAVE" the changes to the page and refresh your administration dashboard and you will not see any news feed.

Hope it helps!

About Author

Written By Lavish Kumar

Based out of New York, USA, Lavish Kumar is a full stack web developer by profession and founder of Striving Programmers, a trusted community for developers that offers a wealth of articles and forums to assist individuals with improving their software development skills.

Leave your comment