as seen in the image below, my Magento site displays an IMG tag before the IMG tag meant for displaying logo on the homepage. Please tell me how to eliminate the first unwanted IMG tag logo-white.svg. thanks.

enter image description here

  • try turning on the template path hints – Marius May 8 at 7:54
  • Marius, thanks a lot. I found this file adding the unwanted IMG tag in the header. /public_html/vendor/swissup/module-theme-editor/view/frontend/templates/header/logo-alt.phtml. This is coming from our own theme which we customized. – CodeForGood May 8 at 8:45
  • Do you I think I should override this file by deleting the line of code that puts this logo before the actual one? – CodeForGood May 8 at 8:46

Comment out = $block->getChildHtml('logo-alt') in logo.phtml file in the custom module so that only the intended logo appears not together with the default logo provided by the theme.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.