From 53121986449883f05f4b12744909845d359e85ff Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Wed, 17 Nov 2021 16:45:24 -0500 Subject: [PATCH] fix svg function issue with docker/browser-sync dev env --- custom-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-functions.php b/custom-functions.php index 7c14721..cee0b50 100755 --- a/custom-functions.php +++ b/custom-functions.php @@ -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}}';