Sign in

How to override the JSonLD ?

  • This topic has 1 reply, 2 voices, and was last updated 2 months, 1 week ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4774
    JOduMonT

    When I generate my website it say I’m an organization

    <scripttype=”application/ld+json”>{“@context”:”http://schema.org&#8221;,”@type”:”Organization”
    but I would like to be a Person
    <scripttype=”application/ld+json”>{“@context”:”http://schema.org&#8221;,”@type”:”Person”
    how could I change this ?
    #4807
    Bob
    Support

    There is no way to override it, all you can do is delete the {{jsonLD}} element (helper) from the head.hbs and insert your code manually. To simplify the work you can use JSON-LD Schema Generator e.g. https://hallanalysis.com/json-ld-generator/

    To preserve the custom code changed from being overwritten the next time your theme is updated, please make sure you have created override files, which are essentially copies of the existing theme files and are stored separately → https://getpublii.com/dev/theme-overrides/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.