Searching theme files for keywords or code snippets

Dynasort
Shopify Partner
56 5 12

I've been struggling for a while finding snippets, CSS classes, etc. in shopify themes doing dev. work for clients for sometime. Wish Shopify would add better search functions into the theme editor.

 

Is the Chrome extension route and the Diffy app the only way to go here? Other than setting up Git and using command line, which isn't something some merchants want to invest time in.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
Replies 3 (3)

Ujjaval
Shopify Partner
1242 197 210

@Dynasort 

Ujjaval_0-1673415501538.png

-> You can find file or snippet by besides search option
-> If you want to search any classes in your file then you can try below one search option (Ctrl+f(Shortcut key for accessing the search option))

Dynasort
Shopify Partner
56 5 12

Yes of course, but what if I don't know where the class "black_friday_2022" exists in templates or sections? E.g. my client has 72 different versions of product.liquid... I know - why would there be 72, that's another story.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
SmileyinSK
Tourist
8 0 1

THANK YOU for pointing out how to find the Search bar!!! I've been wasting so much time scouring files looking for specific code.

Smiley Acres, your friendly country store, online! Come visit us at smileyacres.ca.