json script

Permalink Browser Info Environment
There are a couple of lines of ld+json script that I need to have changed. the @type is "Organization" and I need to change that to "LocalBusiness" instead. I believe the json is something you control, right? I appreciate your help.

Type: Pre-Sale
Status: Resolved
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

You can set the "Company or person" field to "-- Choose whether you're a company or a person --". This way it won't populate that specific json script (as of version 1.1.4, so update if you haven't already). You're then able to paste in some code yourself wherever and whenever you want to. That makes it as customizable as possible I guess!

Kind regards,

Ramon
edsaxmoore replied on at Permalink Reply 1 Attachment
I do have 1.1.4 and can select either Company or individual. While I can input information, the actual information I need to change is the following:
<script type="application/ld+json">{"@context":"http:\/\/schema.org","@type":"Organization"

The word Organization needs to say LocalBusiness. Is there a way to change that?
edsaxmoore replied on at Permalink Reply
Does the database write the word Organization? I could just change it in there if I knew where to look. LocalBusiness is the majority of what I work with and they will do better in SEO if I can set it up properly.

Thanks,
Ed.
edsaxmoore replied on at Permalink Reply
I found it. It is in the file packages/devoda_seo\src\DevodaSeo.php. Line 545
ramonleenders replied on at Permalink Reply
ramonleenders
Although you've found it, I don't recommend editing it into this particular value. Let me explain why. Most of the things are handled this way, because they are explained this way by Google. See this site (Google's own):

https://developers.google.com/webmasters/social-markup/...

It reads: "Include a Person or Organization record in your markup with..". So it doesn't say any other value.

If you do want to add your "LocalBusiness", you can add another ld+json section from what I can tell. There's some info here too:

https://yoast.com/local-business-listings/...

They say "Another element to add to complete your online profile, are links to your social media accounts.". So it seems like both are independent entries, so you can add multiple. Now I'm not the 100% expert here, and it's easy to interpret things different than they're mean to be so.. Correct me if I'm wrong and if you have examples yourself. Always in for improvements and learning something new! :)

Kind regards,

Ramon

concrete5 Environment Information

concrete5 8.1

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.