SVG Handling
Theme Redone supports SVG ( uploading to media uploads, using it in on the front-end and handling via the tr_get_media()
function ). But, to enable this feature, go ahead and install the SVG Support plugin by Benbodhi.
We could’ve written our own implementation, but we opted for using this plugin instead, as it handles the SVG sanitization as well.
Note that on the plugin’s page you will see the information about using the “style-svg” class on img elements so that the plugin can automatically replace that image with the SVG code. Ignore this, as we are handling this via the tr_get_media()
function.