Hello
I changed the logo size. It was working before I updated to CE 2.3 but now it's not working. Only if I switch to the theme "Magento Blank" the Logo is in the correct size on the home page. If I navigate to another page the logo is displayed in the wrong size.
Any Ideas?
Solved! Go to Solution.
Hello
I've got an update for you.
public_html/app/design/frontend/vendor/theme/Magento_Theme/layout/default.xml
I missed the bold marked folder. Therefore it was not working.
Hi @patrick_tschumi,
May be there are some custom css applied on the logo.
Or You can share public url, so I can tell you better.
Hello Thx for your response.
I checked it. There is no custom css applied.
The line looks like this in the browser:
<img src="https://domain.com/pub/media/logo/websites/1/logo.png" title="" alt="" width="148" height="43">
If i alter width and height here it resizes as expected. However if I switch to the blank theme it's working on the main page but not on the sub-pages. If I switch to luma no page has the correct size.
Any suggestions?
I extended the luma theme, changed my sites to it in the backend and did the following without any success.
Path:
public_html/app/design/frontend/custom/luma_custom/layout/default.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="header.container">
<container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
<arguments>
<argument name="logo_img_width" xsi:type="number">300</argument>
<argument name="logo_img_height" xsi:type="number">207</argument>
</arguments>
</block>
</container>
</referenceContainer>
</body>
</page>
If I have a look on the html within the browser it's still like this:
<img src="https://contoso.com/pub/media/logo/websites/1/logo.png" title="" alt="" width="148" height="43">
Any suggestions?