Answer the question
In order to leave comments, you need to log in
Why is meta robots not showing up in any way?
I add the meta name="robots" tag to header.php after the call , however, the function does not work before it either: $APPLICATION->ShowHead();
$APPLICATION->SetPageProperty("robots", "noindex, follow");
echo '<meta http-equiv="Content-Type" content="text/html; charset='.LANG_CHARSET.'"'.($bXhtmlStyle? ' /':'').'>'."\n";
$this->ShowMeta("robots", false, $bXhtmlStyle);
$this->ShowMeta("keywords", false, $bXhtmlStyle);
$this->ShowMeta("description", false, $bXhtmlStyle);
$this->ShowLink("canonical", null, $bXhtmlStyle);
$this->ShowCSS(true, $bXhtmlStyle);
$this->ShowHeadStrings();
$this->ShowHeadScripts();
Answer the question
In order to leave comments, you need to log in
Perhaps there is an OnEndBufferContent event handler that overwrites robots. You need to look at the code, look for a handler, or look at the b_module_to_module table, a handler can also be added there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question