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 -%}
	               </ul>
              
	            {%- endif -%}

As you can see on 4th line of code i have used some logic but the changes doesn't reflect on the site
https://alphonsomango.in

0 Likes
Highlighted

Hello @suyashekhande,

Your code is working fine.

2020-02-18_20-47.jpg

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
0 Likes