Link Displayed According To Tag On The /Account Page

Topic summary

A user seeks custom code (no apps) to display conditional links on the customer account page based on specific customer tags.

Requirements:

  • Show different links depending on which tag a customer has (e.g., customers tagged “A” see link A only)
  • Multiple tags will exist, each redirecting to different pages
  • No link displays if customer has no tags

Solution Provided:
A developer offered JavaScript/Liquid code to paste at the end of the account page file, with separate markup code to render and display the links.

Current Status:
The original poster is uncertain about locating the account page file (shared a screenshot of theme code settings) but mentioned adding custom Liquid code directly through the theme customizer. They will report back on whether the solution works.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m looking for a custom code (no apps please) that allow me to display a link into the account page, according to a specific customer tag.

I basically want to show a link that is going to redirect a tagged customer to another specific page. However, there will be more than one tag. Eg: Customer tagged “A” should see just the link for “A”. If there is no tag, it doesn’t show anything.

TIA.

Gui

hey @Guifonte

paste this code in your account page, at end of the file,

{% if customer %}
    
{% endif %}

and to render the link paste this one to display it on screen.


    

Hi there,

Thank you for your reply.

Can you please tell me where to find the account page?

I have attached a screenshot of my theme code settings.

I have just added a custom liquid code directly in the page through the theme customiser.

I come back if to say if that works, thanks a lot

Sure. let me know if its works or not.