google-rich-snippets

Using JSON-LD to mark up a seach – How to embed multiple query parameters?

♀尐吖头ヾ 提交于 2019-12-08 16:04:29
I want to enhance a search function's semantic meaning using JSON-LD. The most popular snippet to do that seems to be this one from Google: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.example-petstore.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example-petstore.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> While I understood how this works, I am wondering if it's possible to combine the SearchAction markup with other parts of Schema.org's

Using JSON-LD to mark up a seach – How to embed multiple query parameters?

谁说胖子不能爱 提交于 2019-12-08 05:33:59
问题 I want to enhance a search function's semantic meaning using JSON-LD. The most popular snippet to do that seems to be this one from Google: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.example-petstore.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example-petstore.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> While I understood how this works,

Using sitelinks search bar google

这一生的挚爱 提交于 2019-12-08 02:44:58
问题 I am following this guide by Google to add a sitelinks search bar on my website. The structured data markup tool shows everything to be correct. But: The search bar hasn't appeared in the search results for my website. Google has indexed the page www.example.com/search?q=%7Bsearch_term_string%7D instead: I have the exact same code as explained in the example, except the site URL of course. What am I doing wrong? Or is this expected behaviour? <script type="application/ld+json"> { "@context":

Is it possible to change Microdata itemprop with jQuery?

岁酱吖の 提交于 2019-12-07 00:14:27
Here is the code that shows success in console log but fails when tested with Google's Structured Data Testing Tool or with G+ share button. The original values remain. In this case "jack" never updates to "jill". var newName= "jill" $("h1").attr('itemprop','name').html(newName); Here is the Microdata: <body itemscope itemtype="http://schema.org/Blog"> <div style="display:none;"> <h1 itemprop="name">jack</h1> <img itemprop="image" src="http://somehewhere.com/something.png" /> <p itemprop="description">some text</p> </div> As you can see, just trying to change the value of "jack" to "jill". The

Using sitelinks search bar google

瘦欲@ 提交于 2019-12-06 13:14:11
I am following this guide by Google to add a sitelinks search bar on my website. The structured data markup tool shows everything to be correct. But: The search bar hasn't appeared in the search results for my website. Google has indexed the page www.example.com/search?q=%7Bsearch_term_string%7D instead: I have the exact same code as explained in the example, except the site URL of course. What am I doing wrong? Or is this expected behaviour? <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.example.com/", "potentialAction": { "@type"

Error: Page contains property “query-input” which is not part of the schema

為{幸葍}努か 提交于 2019-12-06 11:40:43
I get this error from the Google RichSnippets testing tool : Error: Page contains property "query-input" which is not part of the schema. But where did I make a mistake? HTML : <div id="dkAjaxSearch"> <input id="ajaxSearch" type="text" value="" name="search_term" itemprop="query-input"> Press Enter to search </div> JSON-LD : <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://domain.com/", "potentialAction": { "@type": "SearchAction", "target": "http://domain.com/search/{search_term_string}", "query-input": "required name=search_term

How do I correctly markup a Product within an Offer within a Product?

萝らか妹 提交于 2019-12-06 03:54:27
I am getting Google Search console errors on the Product pages for a website I maintain, and I'm not sure how to resolve the errors. The error I'm getting is: One of offers or review or aggregateRating should be provided. This is simple enough to fix normally, however my confusion is that I am already providing the offers data in a different portion of the json ld. The structure of my Product json ld is Product{ Offers{ Product {} Product {} } } Where the nested products are the different variants of the same product. I don't have reviews or ratings available on the site, so that leaves me

Do I have to create new visible elements to abide by Google's Microdata Schema.org requirements?

一曲冷凌霜 提交于 2019-12-05 21:59:24
I have added Schema.org/Microdata properties to a list component on my site: // This is one item in my list: <div itemscope itemtype = "http://schema.org/WebApplication" > <span itemprop = "name"> The Awesome Web App 01 </span> <span itemprop = "locationCreated" itemscope itemtype = "http://schema.org/City" > <span itemprop = "name"> Chicago </span> </span> </div> When I run that through the google Structured Data Testing Tool I get error: Two of operatingSystem, aggregateRating, applicationCategory, offers are required. So I have a few questions: 1 - Does it matter that I have this error ?

Why aren't my rating/review Google rich snippets working?

老子叫甜甜 提交于 2019-12-04 06:53:11
问题 I'm using Google rich snippets (https://developers.google.com/structured-data/rich-snippets/reviews) to tag ratings and reviews on this website: http://www.fwpest.com/ Google's Structured Data Testing Tool says "All good" here: https://developers.google.com/structured-data/testing-tool/?url=http://fwpest.com But I don't see the stars below the website url on a Google SRP here: https://www.google.com/search?q=f%26w%20pest%20control By contrast, I do see the star rating and review metadata

Google requiring certain properties for certain types when adding Schema.org markup?

吃可爱长大的小学妹 提交于 2019-12-04 04:58:17
问题 I tried to add Schema.org markup on my site, with the type Article , then adding some properties on it, when checked on Google Structured Data Testing Tool, it said required certain properties, like dataPublished , author etc. I can add some properties to meet the requirement, but not all of them. Is this requirement real? I mean really required by the rule? Or just Google rule? I came across this page https://developers.google.com/search/docs/data-types/articles It said for non-AMP, those