plugins - How to Modify Gallery Preview on Edit Screen on the "Visual" Tab in Classic Editior

admin2025-01-08  6

I am modifying the gallery_shortcode() function from media.php using a plugin.

How do I make my custom gallery structure show up as the preview on the edit page. I want to change how it displays in this image:

If you inspect this element the gallery preview is inside a wpview div but I cant seem to find where this is generated.

I am using the classic editor. I want to add some css selectors and html tags based on some custom attachment variables. I will likely eventually work on the block editor as well.

I already did this to the actual display of the published gallery, but need some of the elements to show in the editor as well.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736266200a1101.html

最新回复(0)