Skip to content

Instantly share code, notes, and snippets.

@codenameEli
Created February 28, 2017 19:02
Show Gist options
  • Save codenameEli/0261c231cc8844c854745884bd4d41e5 to your computer and use it in GitHub Desktop.
Save codenameEli/0261c231cc8844c854745884bd4d41e5 to your computer and use it in GitHub Desktop.
get_template_part inline svgs WordPress
// file is in wp-content/themes/your-theme/assets/images/svg-logo.php
<?php get_template_part( 'assets/images/svg', 'logo' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment