Editing Right Header Column Content

New Member
5 0 0

When a customer is logged in, in the right side of menu bar he can see "My Account / Logout" Text.
So i want to change it to Hello, {{customer.first_name}}/Logout


so my attempt was to edit the header_account.liquid file and there i found a code snippet

 {%- if shop.customer_accounts_enabled -%}
	               <ul class="clearfix">
	                  {%- if customer -%}
	                  <li><a class="pr" href="/account">Hello,{{ customer.first_name }}</a></li>
	                  <li><a class="pr" href="/account/logout">{{ 'layout.customer.log_out' | t }}</a></li>
	                  {%- else -%}
	                  <li{% if settings.login_side and offpopup == false %} class="login-side-opener"{% endif %}><a class="pr" href="/account/login">{{ 'layout.customer.log_in' | t }}</a></li>
	                   {%- endif -%}
	            {%- endif -%}

As you can see on 4th line of code i have used some logic but the changes doesn't reflect on the site


Hello @suyashekhande,

Your code is working fine.


Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit