I need to remove default welcome message from header but display username after successful login. Tried below to hide welcome message but it also removes username after login

<referenceBlock name="header">
        <argument name="show_part" xsi:type="string">other</argument>

Also tried below

<referenceBlock name="top.links">
   <referenceBlock name="header" remove="true"/>  

How do I achieve above using xml and without overriding template file ?

1 Answer 1

  1. On the Admin menu, go Content > Design > Configuration > Select your current theme > .
  2. Choose the storeview you want to remove the welcome message.
  3. Under Action column, open the Edit mode. Scroll down and expand
    the Header section.
  4. Then, remove the Welcome Text.
  • 1
    It takes default value Default welcome msg! if left empty Commented Feb 5, 2018 at 12:48
  • Worked on my installation, Magento 2.3.2, was fine to leave empty Commented Sep 27, 2019 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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