Answer the question
In order to leave comments, you need to log in
How to hide breadcrumbs from 404 page?
Good day.
There are several pages on the site.
To such codes, I removed the display of the navigation bar from the main one.
$bIsMainPage= $APPLICATION->GetCurDir(false) == SITE_DIR ;
<?if (!$bIsMainPage):?>
<div class="navigation">
<div class="navigation-info container">
<?$APPLICATION->IncludeComponent("bitrix:breadcrumb", "navigation", Array(
"PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
"SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
"START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка
),
false
);?>
</div>
</div>
<?endif;?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question