I finally got it figured out (for NOP ver 2.7). There is no need to add those three lines to the Index.cshtml.
Here are the steps: 1) Clear all three boxes on the HomePageText SEO tab and save it.
2) Go to Configuration-->Settings-->General and Miscellaneous Settings, then click the "SEO Settings" tab and fill out the default SEO Title, Keywords, Description there. The index page will now work correctly - no additional changes are necessary.
For some reason, setting the SEO meta tags on the HomePageText topic will not override the defaults (under "General and Miscellaneous Settings").
I using NopCommerce 3.0. I changed _ColumnsThree.cshtml to My Homepage. In _Root.Head.cshtml, I changed like this : <meta name="keywords" content="" /> And I added value for Default keywords in Seo Settings Tab in General and miscellaneous settings. In _ColumnsThree.cshtml , I added : @{ Layout = "~/Views/Shared/_Root.cshtml"; var keywords = @Html.NopMetaKeywords().ToString(); Html.AddMetaKeywordParts(keywords); }
But when I run my Homepage in browser, I view keywords is empty. Where did I do wrong? Please help me. Thanks