Sign in

How to override the JSonLD ?

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4774
    Avatar photoJOduMonT

    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/

    --
    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!

    #6572
    Avatar photoJOduMonT

    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 😉

     

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