fix for svg loading on localhost with docker

This commit is contained in:
Adam Piontek 2021-11-17 16:01:55 -05:00
parent 97cc9384e5
commit cd5dfe981b
1 changed files with 1 additions and 1 deletions

View File

@ -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);