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:
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.
Solved! Go to the solution
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.