1

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">
    <arguments>
        <argument name="show_part" xsi:type="string">other</argument>
    </arguments>
</referenceBlock>

Also tried below

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

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

3
  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.
2
  • 1
    It takes default value Default welcome msg! if left empty Feb 5 '18 at 12:48
  • Worked on my installation, Magento 2.3.2, was fine to leave empty Sep 27 '19 at 8:49

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.