Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to override the JSonLD ?

  • #4774
    Avatar photo[anonymous]

    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
    Avatar photoBob

    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/

    #6572
    Avatar photo[anonymous]

    Hi Bob;

    in the same kind of question, how I could publish post/recipe with the Recipes schema should I build a post template ?

    if yes what is the best way to do that 😉