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.

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

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.

 

Looking for quality nopCommerce Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , | Posted under nopCommerce | RSS 2.0

Author Spotlight

Lavish Kumar

Founder, developer and owner of StrivingProgrammers.com - By profession, he is a software programmer / web developer, web designer & DBA. He is passionate about technology and electronic gadgets. He enjoys writing tech articles and developing web applications. He is a nopCommerce MVP and author of official nopCommerce Designer's Guide.

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

  1. Thanks for share.
    I also have the same problem like that and already known to remove.
    thanks….
    admin http://mentieuhoatot.com

Leave a Reply

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