• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Google Structured data for Xenforo

#1
In the PAGE_CONTAINER Template , The following script for google structured data is there

<xen:if is="{$isIndexPage} AND {$canSearch}">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "{xen:jsescape {xen:link canonical:index}}",
"potentialAction": {
"@type": "SearchAction",
"target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
"query-input": "required name=search_keywords"
}
}
</script>
</xen:if>

On Similar lines , Can anybody please help me how to add the following Javascripts in Xen foro langauage.

Script 1.

<scripttype="application/ld+json">
{
"@context":"http://schema.org",
"@type":"WebSite",
"name":"Your WebSite Name",
"alternateName":"An alternative name for your WebSite",
"url":"http://www.your-site.com"
}
</script
>

Script 2

<scripttype="application/ld+json">
{
"@context":"http://schema.org",
"@type":"Person",
"name":"your name",
"url":"http://www.your-site.com",
"sameAs":[
"http://www.facebook.com/your-profile",
"http://instagram.com/yourProfile",
"http://www.linkedin.com/in/yourprofile",
"http://plus.google.com/your_profile"
]
}
</script>


Many Thanks

VIkram