cart title clickable

Solved

cart title clickable

vvyan
Excursionist
24 0 10

hi all, is there a way to make the "your cart" page title clickable to direct buyers to a cart page? I currently like the slide out drawer but would also like to give buyers the option of clicking it.

url: a2d014-b6.myshopify.com

pw: test222

 

 

click cart.png

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
9534 1916 1950

This is an accepted solution.

Hi @vvyan 

Please open Online Store > Themes > Edit code > Snippets > cart-drawer.liquid, find this line of code 

<h2 class="drawer__heading">{{ 'sections.cart.title' | t }}</h2>

Replace it with this 

<h2 class="drawer__heading"><a href="/cart">{{ 'sections.cart.title' | t }}</a></h2>

Save file 

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 2 (2)

Dan-From-Ryviu
Shopify Partner
9534 1916 1950

This is an accepted solution.

Hi @vvyan 

Please open Online Store > Themes > Edit code > Snippets > cart-drawer.liquid, find this line of code 

<h2 class="drawer__heading">{{ 'sections.cart.title' | t }}</h2>

Replace it with this 

<h2 class="drawer__heading"><a href="/cart">{{ 'sections.cart.title' | t }}</a></h2>

Save file 

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Sweans
Shopify Partner
406 79 123

Hi @vvyan,

To add the heading and link to your cart-drawer.liquid snippet, follow these steps:-

1. Access Your Theme Files:

   - In your Shopify admin, go to Online Store > Themes.

   - Find your active theme, click on Actions > Edit Code.

2. Locate the cart-drawer.liquid Snippet:

   - In the Snippets section, find the file named cart-drawer.liquid.

3. Insert the Code:

   - Inside cart-drawer.liquid, add the following code where you want the cart title to appear:

 

 <h2 class="drawer__heading">
     <a href="/cart">{{ 'sections.cart.title' | t }}</a>
   </h2>

 

Sweans_0-1726546066679.png

 

4. Save the File:

   - After making the changes, click Save.


I hope this helps! If it does, please like it and mark it as a solution! 

If you need further assistance, feel free to reach out!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at [email protected] regarding any help.
- To know more about me check out www.sweans.com