Custom JSON-LD
If you're an advanced user and want to add and edit schemas with custom JSON-LD code, then Slim SEO Schema has that for you.
Select Custom JSON-LD from the list of available schemas:
Then in the schema panel, paste your JSON-LD code into the textarea box:
You can still insert the dynamic variables into your JSON-LD code as follows:
And the plugin will render the variables on the front end.
Although the plugin can process your custom JSON-LD code if it contains <script>
tag, it's recommended to enter only the JSON code. Some hostings has special security rules that block the plugin from saving the data if it contains <script>
tag.
Using custom JSON-LD code with dynamic variables is a great and flexible way to control your schema output.
After finish adding or editing JSON-LD code, don't forget to set the location for the schema.