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 the only issue is the, this 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.
Hope it helps!