Skip to content

Commit

Permalink
Fix style and svg defs position on front end
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 16, 2021
1 parent 89fe53f commit 13d81d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/block-supports/duotone.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,15 @@ function ( $selector ) use ( $duotone_id ) {
1
);

return $content . $duotone;
add_action(
// Ideally we should use wp_head, but SVG defs can't be put in there.
'wp_footer',
function () use ( $duotone ) {
echo $duotone;
}
);

return $content;
}

// Register the block support.
Expand Down

0 comments on commit 13d81d9

Please sign in to comment.