xoops forums

Hadesteam

Not too shy to talk
Posted on: 2017/5/21 18:32
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 164
Since: 2011/9/5 1
#1

Google structured data - search box code modification

Hi,

How to modify this code to work all right in xoops 2.5.7?:

<script type="application/ld+json">

  
"@context""http://schema.org"
  
"@type""WebSite"
  
"url""http://www.example.com/"
  
"name""Generally the title",
   
"author": {
      
"@type""Person",
      
"name""Jane Doe"
    
},
  
"description""Any sort of description, I'd keep it short",
  
"publisher""publisher name",
  
"potentialAction": { 
    
"@type""SearchAction"
    
"target""http://www.example.com/?s={search_term}"
    
"query-input""required name=search_term" 
    }
</
script>

Bleekk

Theme Designer
Posted on: 2017/5/21 19:34
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 935
Since: 2002/12/14
#2

Re: Google structured data - search box code modification

What are you talking about?
Where is this code from?
How is it used?
What does it do?
Is there any instruction?

Hadesteam

Not too shy to talk
Posted on: 2017/5/22 15:04
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 164
Since: 2011/9/5 1
#3

Re: Google structured data - search box code modification

I saw this code on the competition page :) just wondering if it is not unnecessary "gadget"?

http://jsonld.com/web-page/

Resized Image

geekwright

Quite a regular
Posted on: 2017/5/23 1:39
geekwright
geekwright (Show more)
Quite a regular
Posts: 302
Since: 2010/10/15
#4

Re: Google structured data - search box code modification

Schema.org linked data separated from the HTML -- very interesting stuff.