Where to configure HOME page title, keywords, description?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 10 años
I found some issues on Google webmaster tools...

Duplicate title tags

Offer prices on Guitars, Pianos, Drums, Saxophones & Violins - Offers in Bangalore, Chennai, Hyderab

/musical-instruments-2
/musical-instruments-2?manufactureid=103&pagesize=40
/musical-instruments-2?manufactureid=103&pagesize=800&orderby=15
/musical-instruments-2?manufactureid=56&pagesize=320
/musical-instruments-2?manufactureid=60&pagesize=160
/musical-instruments-2?manufactureid=86&pagesize=400
/musical-instruments-2?pagesize=12&manufactureid=76&orderby=10
/musical-instruments-2?pagesize=240
/musical-instruments-2?pagesize=600
/musical-instruments-2?pagesize=80&manufactureid=104

Duplicate meta descriptions

Springwel Mattress Bangalore with 5 Guaranteed Benefits | Best Price, Quick Door Step Service, Free

/springwel?orderby=11
/springwel?orderby=15
/springwel?pagesize=160
/springwel?pagesize=350
/springwel?pagesize=40

Like above it is showing
Duplicate Meta Descriptions : 269
Duplicate Title Tags : 164

Please guide me to solve this issue...
Hace 9 años
I added this code in: index.cshtml

var _topicService = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Topics.ITopicService>();
var topic = _topicService.GetTopicBySystemName("HomePageText");
Html.AddTitleParts(topic.MetaTitle);
Html.AddMetaDescriptionParts(topic.MetaDescription);
Html.AddMetaKeywordParts(topic.MetaKeywords);
Hace 9 años
Small update ;-)


@using Nop.Services.Localization;
@{

    Layout = "~/Views/Shared/_ColumnsThree.cshtml";
    var _topicService = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Topics.ITopicService>();
    var topic = _topicService.GetTopicBySystemName("HomePageText");
    Html.AddTitleParts(topic.GetLocalized(x => x.MetaTitle));
    Html.AddMetaDescriptionParts(topic.GetLocalized(x => x.MetaDescription));
    Html.AddMetaKeywordParts(topic.GetLocalized(x => x.MetaKeywords));
}
Hace 8 años
I added storeId to the above code, if you've got more than one store...


@using Nop.Services.Localization;
var storeId = EngineContext.Current.Resolve<Nop.Core.IStoreContext>().CurrentStore.Id;
var _topicService = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Topics.ITopicService>();
    var topic = _topicService.GetTopicBySystemName("HomePageText", storeId);
    Html.AddTitleParts(topic.GetLocalized(x => x.MetaTitle));
    Html.AddMetaDescriptionParts(topic.GetLocalized(x => x.MetaDescription));
    Html.AddMetaKeywordParts(topic.GetLocalized(x => x.MetaKeywords));
Hace 7 años
Congiuration >>> General And Miscellaneous Settings under SEO Settings, now here you can enter your meta keywords and meta description but it will come on very page in products also.  
Below code will add title, description and keywords for home page only.

Html.AddTitleParts("My home page title");
Html.AddMetaDescriptionParts("My meta description");
Html.AddMetaKeywordParts("My meta keywords");
Hace 7 años
Below code helped me under Views/Home/Index.cshtml:

Html.AddTitleParts("My home page title");
Html.AddMetaDescriptionParts("My meta description");
Html.AddMetaKeywordParts("My meta keywords");
Hace 7 años
anjankant wrote:
Below code helped me under Views/Home/Index.cshtml:

Html.AddTitleParts("My home page title");
Html.AddMetaDescriptionParts("My meta description");
Html.AddMetaKeywordParts("My meta keywords");


Just to be 100% correct, I've pasted this into the above location - now, do I replace what's in between the quotations with my information? Or is there now a field in Administration that I should know about?

Thanks.
Hace 7 años
I am not very i understand, but there is any way to add HOME page title, keywords, description from the admin area?
Hace 7 años
Andrei,

There is a limit to 49 characters when entering "My home page title" at this location wwwroot/Views/ Home in Index.cshtml file as per your suggestion:

Html.AddTitleParts("My home page title");
Html.AddMetaDescriptionParts("My meta description");
Html.AddMetaKeywordParts("My meta keywords");

If the title is more then 49 characters it does not appear in
<title></title> tag when I inspect element on the title page.

Do you have any remedy to this problem?

interborder
Hace 7 años
Update, title tag has expand arrow which displays full title if I click on it if the tags are empty when inspecting element.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.