I’m trying to create a div section which calls an image from the shopify folder. The code to do this in traditional CSS is below (which I’ve been adding to the bottom of the theme.scss.liquid);
This doesn’t seem to work however, from my experience and from reading other forums, the correct styling seems to be the below - which sadly I cannot make work;
Is it a .liquid css file that you added the code into or just a standard .css file? Would be good to see the exact code you tried, and even a link to the stylesheet.
If I search that file for “#aboutUs_image_1” I can see that the asset is being included correctly. However, that file doesn’t seem to exist. Are you 100% sure that assets exists in that theme?
Now we’re getting somewhere! When you upload something into the asset folder of the theme you can happily use the asset_url filter. However in this case you’ve upload the file into settings/files instead. That’s the key.
I have added uploaded the image to the asset folder and used the asset_url and the asset_img_url filters (in the screenshot). But neither seem to work.
Is there anything else I’m missing or a resource I might look to?
How would I reference a image that’s in “/uploads/” on shopify servers so I can image_url filters for the resolution, or is it not possible.
For example I’m using a personalizer app which saves the personalized image in the line_item properties. I would like to display this image in the confirmation email to the customer, but I don’t want them to be able to download a high quality image so I want to resize it with the url filters. below is the code.
{% assign property_size = line.properties | size %}
{% if property_size > 0 %}
{% for p in line.properties %}
{% if p.first contains '_Preview' %}
{% endif %}
{% endfor %}
{% else %}
{% if line.image %}
{% endif %}
{% endif %}