ability to add element no matter selectors

9 1 1

I am building my first shopify app, and when I need to add an icon to the products in collection page, i realised that the themes will have different css selectors, you can see below how I am adding the icon to the products:

Screenshot 2020-04-19 at 9.10.12 PM.png


I am wondering if there is a better idea to do so, since I don't think there would be global selectors to get products in collection page.

Shopify Partner
1835 210 427

This is an accepted solution.

Unfortunately, the best way would be to get the most popular themes and have a catalog of selectors specific to these themes. Once you lunch you'll learn more about other teams. Or just add an advanced setting for merchants to be able to provide the selector within the admin and use it.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog