Here’s how to add an
.svg file to your a template in your WordPress theme – without having to paste the entire file contents:
|<?php echo file_get_contents( get_stylesheet_directory_uri() . '/img/icons/your-logo-file.svg' ); ?>|
I use this technique to add the main logo to a website. It would normally go in
header.php but would work anywhere.