I'm trying change the default magento logo in email template from Admin Panel, Content > Design > Configuration but it doesn't Update on the email. How can I fix this issue?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
1-On the Admin sidebar, Content > Design > Configuration > Select your current theme > .
You can see the existing design configuration on the management table, then click on Edit under Action.
2-On the workplace, please scroll down to Other Settings, open Transactional Email setion.
3-To change your Logo Email, click on Upload to choose one of the image files you want to aplly for your logo.
4-Enter the alternate text identify the Logo Image Alt. You can give the height and width of logo. Save configuration and changes will reflect.
Reference source: https://magentip.com/change-magento-2-store-logo/
You can upload and overwrite the file in logo file path, for example
If you want to Change magento 2 logo programmatically, go to
Add this code
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="logo"> <action method="setLogoFile"> <argument name="logo_file" xsi:type="string"> images/yournewlogo.png </argument> </action> </referenceBlock> <referenceBlock name="logo" remove="true" /> </body> </page>
images/yournewlogo.png with your file path