fix svg function issue with docker/browser-sync dev env

This commit is contained in:
Adam Piontek 2021-11-17 16:45:24 -05:00
parent aa79721e1b
commit 5312198644
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ function inline_svg( $svg_name, $atts = array() ) {
), $atts));
// load initial svg content
$svg_content = file_get_contents( get_template_directory_uri() . '/dist/images/' . $svg_name . '.svg' );
$svg_content = file_get_contents( get_template_directory() . '/dist/images/' . $svg_name . '.svg' );
// set svg class
$class_target = $svg_class == '' ? 'class="{{class-placeholder}}"' : '{{class-placeholder}}';