[NOP 4.1] Backinstocksubscription and productreviews pages - how can i add meta tags no-index follow?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi!
maybe someone can help me to set
<meta name="robots" content="noindex, follow">

On two types of pages:
https://yourstore./backinstocksubscribe
https://yourstore.pl/productreviews

?
4 years ago
Anyone, maybe do this?

Earlier i create this topic: https://www.nopcommerce.com/boards/t/71188/how-to-change-title-on-homepage.aspx and there is:

Html.AddTitleParts("Home page");


Maybe someone can tell me how can i add: <meta name="robots" content="noindex, follow">?

I tried Html.AddMeta… but it's not work :|
4 years ago
Zyje_sobie wrote:
Maybe someone can tell me how can i add: <meta name="robots" content="noindex, follow">?

Just open file and add <meta....> as it is.
Just remember to made modification at theme folder, not original view folder.

Regards,
Tom
4 years ago
Hi! thx for answer, i found "Productreviews.cshtml" file.

And try add here <meta name="robots" content="noindex, follow">

@model ProductReviewsModel
@{
    Layout = "_ColumnsOne";
    //title
    Html.AddTitleParts(Model.ProductName);
    Html.AddTitleParts(T("PageTitle.ProductReviews").Text);
    //page class
    Html.AppendPageCssClassParts("html-product-reviews-page");
}


But it's show in "body" with "center-1" not in <head> :/ (this is nop-templates).
4 years ago
nop4you wrote:
Maybe someone can tell me how can i add: <meta name="robots" content="noindex, follow">?
Just open file and add <meta....> as it is.
Just remember to made modification at theme folder, not original view folder.

Regards,
Tom


Oh i see root head.

But is there any option to set meta only on 2 types of pages? "show this meta if..."
4 years ago
If anyone want do something similar.

1. You need add code below in your template ProdutReviews.cshtml

  
 Html.AppendHeadCustomParts("<meta name=\"robots\" content=\"noindex, follow\">");


2. On backinstocksubscription is inpossible :(


I hope this help somebody :)
3 years ago
Anyone else on backinstocksubscribe?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.