How to HTML Minify Rank Math Schema?

#129996
  • Resolved Gierand
    Rank Math free

    Something like this:

    {"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://domain.com/#company","name":"namecompany","logo":{"@type":"ImageObject","url":"https://4dsn9lj6moxj.cdn.shift8web.com/wp-content/uploads/2020/10/free-job-alert-odisha-logo-1.png"}},{"@type":"WebSite","@id":"https://domain.com/#website","url":"https://domain.com","name":"namecompany","publisher":{"@id":"https://domain.com/#company"},"inLanguage":"en-US","potentialAction":{
    "@type":"SearchAction","target":"https://domain.com/?s={search_term_string}","query-input":"requiredname=search_term_string"}},{"@type":"ImageObject",
    "@id":"https://domain.com/#primaryImage","url":"img.png","width":200,"height":200},{"@type":"WebPage","@id":"https://domain.com/#webpage","url":"https://domain.com/","name":"namecompany:UpdatesOnLatestJobsInOdisha2021","datePublished":"2020-07-19T19:23:38+05:30","dateModified":"2021-01-03T04:35:27+05:30","isPartOf":{"@id":"https://domain.com/#website"},"primaryImageOfPage":{"@id":"https://domain.com/#primaryImage"},"inLanguage":"en-US"}]}

    The problem is that it doesn’t work with any plugin to HTML minification.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch.

    The code you shared is the Json script which is added automatically and is unique for each page/post defining their schema markup. I wouldn’t recommend minifying this as it is usually dynamic according to any changes made to your posts. Think if it as a part of your meta tags.

    Hope this helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘How to HTML Minify Rank Math Schema?’ is closed to new replies.