Forked from rugor/gist:1decc15655891825d15a7024a06d898b
Created
February 12, 2021 05:45
-
-
Save webdevs-pro/749980e978a410f3e9c01e39dc33bcc4 to your computer and use it in GitHub Desktop.
PHP: WordPress echo SVG file contents for inline SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo file_get_contents( get_stylesheet_directory_uri() . '/img/awesome.svg' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment