I’m trying to change how the image gallery is displayed but only for specific products or specific categories. Using the developer display hints, I can see that the block I want to modify for certain products is output by media.phtml.
Suppose I have an alternate file called media-special.phtml, what XML do I need to use and where do I put that XML, to use media-special.phtml instead of media.phtml for specific products or specific categories?
Both categories and products allow you to save layout xml along with the entity record. In this field for the desired entities, add the following: