Shopify themes, liquid, logos, and UX
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.
Hi @George230 ,
Have you import the image in file section by admin panel ?
Hi,
I did add it as a new asset.
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
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
Hi @George230 ,
For Product Page you should aadd in to product-template liquid file !
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024