PRESTIGE...How to add an img beneath the add to cart button

George230
Tourist
22 0 0

Hi,

I've tried this code but for some reasons it doesn't show the img, just a small square with the name of it and it's not even in the right place. 

<img src="{{ '@@payment-methods.png' | asset_url }}" alt="@@paymentmethods" >

Any help would be appreciated. Thanks 

 this is how I wanted to be.

Screenshot_20210911-100727_Chrome.jpg

 

0 Likes

Hi @George230 ,

Have you import the image in file section by admin panel ?

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes
George230
Tourist
22 0 0

Hi,

 

I did add it as a new asset.

Screenshot_20210923-212058_Shopify.jpg

0 Likes

@George230 ,

Upload images on the Files page...
You can upload images on the Files page of your Shopify admin. This is useful because you can access these images while editing any of your themes.

Example I have shown below! Try this! and dont forget to upload pic on file section. Go to the setting in admin panel and select files option

How to Get File Image URL in Shopify
For instance, you want to track the image url of a logo that you have uploaded on your website. You should do:

Input


{{ 'logo.png' | file_img_url: '1024x768' }}

Output


//cdn.shopify.com/s/files/1/0246/0527/files/logo_1024x768.png?42

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes
George230
Tourist
22 0 0

Hi, thanks for the information. The img its been uploaded but could you please be more specific about where I should add the code please and which one of those 2? I'm beginner level, not even   

16324940267376345441293443748072.jpg

0 Likes

Hi @George230 ,

For Product Page you should aadd in to product-template liquid file !

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes