Hi in past i have raised
this issue on how to display image over breadcrumbs in catg and though i have found an ans by myself but i have also got an ans from peoples
but now am facing another related to this those catg images are visible any new cms page that i have created. for refrence am putting an image below
breadcrumbs.phtml
<?php if ($crumbs && is_array($crumbs)) : ?>
<div class="breadcrumbs">
<?php
echo $this->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('catg-image')
->toHtml();
?>
<ul class="items">
<?php foreach ($crumbs as $crumbName => $crumbInfo) : ?>
<li class="item <?= $block->escapeHtmlAttr($crumbName) ?>">
<?php if ($crumbInfo['link']) : ?>
<a href="<?= $block->escapeUrl($crumbInfo['link']) ?>"
title="<?= $block->escapeHtml($crumbInfo['title']) ?>">
<?= $block->escapeHtml($crumbInfo['label']) ?>
</a>
<?php elseif ($crumbInfo['last']) : ?>
<strong><?= $block->escapeHtml($crumbInfo['label']) ?></strong>
<?php else : ?>
<?= $block->escapeHtml($crumbInfo['label']) ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
and i dont want this image to be displayed in cms pages thanks in advance