Skip to content

Commit

Permalink
Add id to schema <script>
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Apr 7, 2024
1 parent b89a9cc commit 52180cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function output() {
if ( wp_get_environment_type() !== 'production' ) {
$flags = $flags | JSON_PRETTY_PRINT;
}
echo '<script type="application/ld+json">', wp_json_encode( $schema, $flags ), '</script>';
echo '<script type="application/ld+json" id="slim-seo-schema">', wp_json_encode( $schema, $flags ), '</script>';
}

private function add_schemas() {
Expand Down

0 comments on commit 52180cb

Please sign in to comment.