adding a banner to cart page using liquid code

Highlighted
New Member
1 0 0

Hi - I wanted to add a banner to the cart page, but can't get it to display properly, can anyone help please?

I just put this code into the cart.liquid page up the top, after loading the image as a new asset

<header class="main-header" role="banner">
  <img src="Check-out-page.jpg" alt="Check-out-page.jpg"/>
</header>

before it is <div id="shopping-cart" class="desktop-12 tablet-6 mobile-3">

after it is the h2 code

Thank you,

0 Likes
Highlighted
Shopify Expert
9925 103 1763

You'd be better off posting a link to the page in question. Looking at what you posted though I would guess the html should be more like this (assuming the images was uploaded to your asset folder):

<header class="main-header" role="banner">
  <img src="{{ 'Check-out-page.jpg' | asset_url }}" alt="Check-out-page.jpg"/>
</header>

 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Highlighted
New Member
1 0 0

Hi Jason, how can i change the size of the image after uploading it as an asset and using the above code?

0 Likes