Skip to content

Instantly share code, notes, and snippets.

@amielucha
Created September 20, 2018 13:55
Show Gist options
  • Save amielucha/69fd67bcec360448a5c458e311402721 to your computer and use it in GitHub Desktop.
Save amielucha/69fd67bcec360448a5c458e311402721 to your computer and use it in GitHub Desktop.
WordPress display site logo content (SVG)
<?php
// Echos site logo contents directly on the page.
// Suitable for displaying SVGs.
echo file_get_contents( get_attached_file( get_theme_mod( 'custom_logo' ) ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment