We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Need to READ /assets/notifications/styles.css - NOT EDIT

Need to READ /assets/notifications/styles.css - NOT EDIT

ScottP
Excursionist
25 1 9

Since your built in email template editor is the worst text editor to ever exit (SEE WHY), I decided to take time out of setting up my store to throw something together to make it easier for me to edit these templates. It's coming along nicely but in order to make the preview look right, I need to be able to import/read the default .css file supposedly located at "/assets/notifications/styles.css".

I do NOT need to edit this file, I just need to read/import it so my tool can display everything properly. Can anyone tell me where to get the styles from this file?

Replies 3 (3)

ScottP
Excursionist
25 1 9

In case anyone is willing to help search, here is what I have come up with so far:

It seems Shopify stores all files related to your store in a folder like this:
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/  (Where the XXXX are numbers unique to your store.)

I am nearly 100% certain the styles.css file is somewhere under here.

All of the following are valid URL's (at least for my store, if I use my unique numbers):

https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/email_settings/LOGONAME.png
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/files/LOGONAME_1200x1200.png
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/t/2/assets/timber.scss.css
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/t/2/assets/styles.css

Based on the above valid URLs, I have tried the following and they were NOT valid:

https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/email_settings/assets/notifications/styles.css
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/files/assets/notifications/styles.css
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/t/2/assets/notifications/styles.css

Hope this helps someone figure it out.

btf85
Shopify Partner
5 0 2

I tried accessing these files by copying/pasting my store's numbers (for anyone who's confused: go to your Admin Panel > Content > then copy the link of anything you've uploaded, you'll see your numbers in the link), and no luck being able to view any of these things. I'm on the Dawn theme, but I'm assuming this is a Shopify-wide thing that they've changed recently.

krisgholson
Shopify Partner
4 0 5

If it helps anyone else that ends up here, I created the following gist (for the  styles.css for the order confirmation email template) to help with local development:

 

https://gist.github.com/krisgholson/01fc812a73080c21f35747e292434c12