From cd5dfe981b0cbe4e082ba67f3e725cf5232cb6e3 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Wed, 17 Nov 2021 16:01:55 -0500 Subject: [PATCH] fix for svg loading on localhost with docker --- custom-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-functions.php b/custom-functions.php index 462763b..4b9f7be 100755 --- a/custom-functions.php +++ b/custom-functions.php @@ -41,7 +41,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' ); // replace svg class $svg_content = str_replace('{{class-placeholder}}', $svg_class, $svg_content);