I have my custom theme in magento and in that theme in header the logo is uploaded. The logo is already uploaded there with correct path but still magento default logo is displaying after upgrading to 2.4.6.I know it is beacuse of something which is wrong in my custom theme app/design/../default.xml . Provoding logo code which is in my default.xml for logo
<block class="MagentoBackendBlockPageHeader" name="headertemplate="Magento_Theme::html/header.phtml">
<block class="MagentoThemeBlockHtmlHeaderLogo" name="logo">
<arguments>
<argument name="logoPathResolver" xsi:type="object">MagentoThemeViewModelBlockHtmlHeaderLogoPathResolver</argument>
<argument name="logo_size_resolver" xsi:type="object">MagentoThemeViewModelBlockHtmlHeaderLogoSizeResolver</argument>
</arguments>
</block>
</block>
And code of my logo.phtml
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var MagentoThemeBlockHtmlHeaderLogo $block
*/
$storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();
/**
* @var MagentoThemeViewModelBlockHtmlHeaderLogoSizeResolverInterface|null $logoSizeResolver
*/
$logoSizeResolver = $block->getLogoSizeResolver();
$logoWidth = $logoSizeResolver !== null && $logoSizeResolver->getWidth()
? $logoSizeResolver->getWidth()
: $block->getLogoWidth();
$logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
? $logoSizeResolver->getHeight()
: $block->getLogoHeight();
?>
<a
class="new-logo"
href="<?= $block->escapeUrl($block->getUrl('')) ?>"
title="<?= $block->escapeHtmlAttr($storeName) ?>"
aria-label="store logo">
<img src="<?= $block->escapeUrl($block->getLogoSrc()) ?>"
title="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
alt="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
<?= $block->getLogoWidth() ? 'width="' . $block->escapeHtmlAttr($block->getLogoWidth()) . '"' : '' ?>
<?= $block->getLogoHeight() ? 'height="' . $block->escapeHtmlAttr($block->getLogoHeight()) . '"' : '' ?>
/>
</a>
enter code here