Personalised name on storefront

Topic summary

A user asks how to display personalized customer names on a Shopify storefront, similar to Mr Porter’s implementation where logged-in users see their name displayed.

Two solutions provided:

Option 1 - Liquid Code:

  • Add conditional Liquid code to theme files (header.liquid or theme.liquid)
  • Displays “Welcome back, [First Name]” for logged-in customers
  • Shows generic “Welcome! Sign in” message for guests
  • Requires editing theme code through Shopify Admin > Online Store > Themes > Edit Code

Option 2 - JavaScript:

  • Offers a more dynamic, client-side implementation
  • Automatically updates greeting based on login status
  • Provides smoother user experience

Both approaches check customer login status and conditionally render personalized greetings. The discussion remains open with no follow-up questions or implementation feedback from the original poster.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Is it possible in Shopify to have personalised names on the storefront just like mr porter has (when you have an account)

hi @Issyeissue1

You can personalize the Shopify storefront by displaying a logged-in customer’s name, just like Mr Porter does. Here’s how you can do it:

Option 1: Liquid Code (Basic Solution)
You can modify your theme’s header or welcome message by adding this Liquid code:

{% if customer %}
   

Welcome back, {{ customer.first_name }}!

{% else %}
   

Welcome! Sign in

{% endif %}

Steps to Add This:
Go to Shopify Admin > Online Store > Themes > Edit Code.

Open header.liquid or theme.liquid (where you want the name to appear).

Paste the code in the desired location.

Option 2: JavaScript (For More Dynamic Experience)
If you want a smoother, JavaScript-powered experience:


Welcome! Sign in

This will automatically update the greeting based on whether the customer is logged in.