How do I change the link on the cart page when there are no items there?

Topic summary

A user asks how to modify the link displayed on an empty cart page in their Shopify store.

Two solutions provided:

  1. BSSCommerce-B2B approach:

    • Navigate to Admin → Online store → Theme → Edit code
    • Locate the main-cart-items.liquid file
    • Modify the link at the marked position in the code
  2. PageFly-Richard approach:

    • Access Online Stores → Themes → More Actions → Edit code
    • Find main-cart-items.liquid
    • Add custom code above the </head> tag in theme.liquid
    • Change the href attribute to the desired URL (example provided: href="https://fynorix.com/products/smart-home-remote")

Status: Both responders provided step-by-step technical solutions with screenshots. The discussion appears resolved with actionable guidance for editing Shopify theme files.

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

Hello, how do I change the link on the cart page when there are no items there?

My site is fynorix.com

Thanks in advance!

@Fynorix ,

Step 1: Go to Admin → Online store → Theme > Edit code

Step 2: Search for the file main-cart-items.liquid

Step 3: Change the link you want in the position i’ve marked below

Hi @Fynorix

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: find and search for main-cart-items.liquid

Then change everything in the href=“” For example: href=“https://fynorix.com/products/smart-home-remote

Hope this can help you solve the issue

Best regards,

Richard | PageFly