Good for acting on specific pieces of your SVG object instead of just link as an <img>
you can bring the entire object into your HTML. You need two things:
- SVG file with a double extension ending with
.php
- e.g.logo.svg.php
- WP include statement with the built-in function
get_template_part
<?php
get_template_part( 'includes/partials/logo', 'logo.svg' );
?>