Media-gallery-item.php customization

Hello I recently placed some code in the media-gallery-item.php file and it was erased with the update. I am new to development and coding. Is there somewhere I can place the customization so it isn’t lost with updates please

Thank you

Hello @Ael1nc,

If you update core template files for yourself then it won’t be upgrade safe because all your changes will be vanished once you update the plugin.

You can override rtMedia templates to customize them for yourself in your theme. Please refer this documentation for more details :

I hope it will help you. Thank you.

Hello Pranali Thank you so much for this information. This is exactly what i needed.


You are welcome @Ael1nc,

I am closing this thread as of now. Feel free to create new if you have any further doubt.

Thank you.