Shopify themes, liquid, logos, and UX
So, I have been trying to implement a custom CSS code background on a section in craft 15.2.0, I have tried in dawn also, but couldn't get the image to apply there either.
I will attach an image of the code here as well as the error it is flagging.
I have tried encasing the command in both " and ' but it liked neither of those and threw the same error 😅
I have been uploading my images i created into my files within shopify assets for my store. I then copy the link from there, and use that as the image link for the background in my CSS code string. You will se in the pics..
Any advice on how to get this to work with craft 15.2.0? Is there a better way/code to use with this theme?
Thank you ever so much for your time and consideration! It is truly appreciated 💜
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
-- put your css code here --
{% endstyle %}
will this work only for the section i wish to change? And can i do this for multiple sections, with different images per section?
thank you ever so much for such a speedy reply!!
I followed the instruction anyway, to see if it would change any part of the store, even if it swapped the BG on all for no... nothing changed in the end. This is probably my fault, though, not the theme..😐
this is how it still looks. the image i selected was a creamy lilac with some stars on, to just sit behind everything to add a little flavour to certain sections on the page - less plain.. you know? is there an issue with the image link, perhaps?
i just realised on your image you share, it says on line 256 this should apply... this is my current line 256 - is this over riding the CSS??? ( i know it was a few lines lower before, that was where my </head> was, apologies!
Hi @BookWyrmsTrove
You need remove this one (red line)
Hi , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
i provided necessary information in my above replies to DaisyVo .
My shop link is Bookwyrms Trove Official Store
i, however, do not feel comfortable in sharing my store password with anyone, I'm sorry. i hope you can provide help and advise without.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025