microdata

Is it possible to change Microdata itemprop with jQuery?

大兔子大兔子 提交于 2019-12-23 03:15:25
问题 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=

Linking superEvent property in Microdata with itemref

心已入冬 提交于 2019-12-23 02:42:29
问题 I'm adding Microdata to a page and I'm trying to associate a list of events to a superEvent, but I don't manage to make it work when checking at: http://www.google.com/webmasters/tools/richsnippets?q= Here the concept code: <div id="main" itemscope="main" itemtype="http://schema.org/Event"> <span itemprop="name">Main </div> <div itemscope="event" itemtype="http://schema.org/Event"> <span itemprop="name">Event <span itemprop="superEvent" itemref="main"> </div> Any idea? 回答1: Problems with your

Angular with Microdata

梦想的初衷 提交于 2019-12-21 17:31:44
问题 Does Microdata work with dynamic Angular ng-repeat items? Can I use it as: <div itemscope itemtype="http://schema.org/Product" ng-repeat="item in items"> … </div> 回答1: I have found schema validator which, for my site actually shows angular expressions: ... datePublished {{lvl_project['year']}} name "{{lvl_project['title']}}" keywords {{lvl_project['tools'].join(',')}} ... Furthermore, it does NOT show all of the ng-repeat -generated elements. This seems to me like a strong indication that the

Errors in Microdata for image/logo as part of a BlogPosting

こ雲淡風輕ζ 提交于 2019-12-20 05:12:30
问题 I am having an issue getting a publisher logo and blog post image to validate using Google's Structured Data Testing Tool. Some sample markup of what I currently have is: <article class="post" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting"> <div class="preview"> <h2 itemprop="mainEntityOfPage headline"><a href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Improving the Patient Experience through the Revenue Cycle Part 1</a></h2> <div class=

Errors in Microdata for image/logo as part of a BlogPosting

北慕城南 提交于 2019-12-20 05:12:24
问题 I am having an issue getting a publisher logo and blog post image to validate using Google's Structured Data Testing Tool. Some sample markup of what I currently have is: <article class="post" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting"> <div class="preview"> <h2 itemprop="mainEntityOfPage headline"><a href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Improving the Patient Experience through the Revenue Cycle Part 1</a></h2> <div class=

Am I allowed to use properties from Thing/CreativeWork/WebPage for an AboutPage item?

自作多情 提交于 2019-12-20 04:26:29
问题 I'm trying to learn how Microdata works and I was looking at the Schema.org website and I kinda get how the basics works because you can find some outlined examples online of the Navigations, Headers, Sidebars and Footers - but I don't understand what properties you can use with more complex item types. Let's say I have an About page on my site. Nothing fancy, you just talk about your business but there is a item type http://schema.org/AboutPage you can use. So I visit that link but to be

Schema.org: What to use, Microdata or JSON-LD?

吃可爱长大的小学妹 提交于 2019-12-20 02:59:05
问题 The data markup Schema.org for search sites like Google, Yahoo!, Bing and Yandex is great for snippets. However, I perceive that most of webmasters use Microdata and almost never use JSON-LD. I learned about JSON-LD recently and I have some doubts: Could I use it without compability problems with search engine? 回答1: There can’t be a general answer: Each consumer (search engine, tool, etc.) has its own conditions (what it supports for which feature). Each syntax (JSON-LD, Microdata, RDFa, etc.

Link `isRelated` schema.org to parent `Product` when not contained in child element

爱⌒轻易说出口 提交于 2019-12-19 11:46:29
问题 I'm trying to indicate multiple related products on a product page using schema.org microdata. But the child products are orphaned because they are not contained in the parent div. I tried using itemref but I must be using it incorrectly or it must be the wrong solution. ALSO, I cannot easily create a wrapper div or use the body element to create the parent. My ideal solution would be one that leaves the page structure as-is, and somehow links the "child product" divs to the parent. I thought

Omitting price property for sold products?

邮差的信 提交于 2019-12-19 10:50:55
问题 I'm adding Schema.org (using Microdata) to a product page. My client wants the price omitted for sold products - she doesn't want anyone to be able to see the price of sold products. However this was showing up as an error in the Microdata for 'price': check page in Google SDTT Obviously the average user will still not be able to see the price, but it's used by Google Shopping so might show up. Should I just put a price of 0? 回答1: It’s perfectly fine to have an Offer without a price . If

Product size: width, height and depth

自作多情 提交于 2019-12-19 08:22:28
问题 I'm using schema.org definition to represent a product. I have a doubt about product size: should I specify the unit of measure in the field? Here's my code (I need a separate span for "cm" to style it differently): <div itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Product name</h1> Size: <span itemprop="width">60 <span>cm</span></span> <span itemprop="height">50 <span>cm</span></span> <span itemprop="depth">40 <span>cm</span></span> </div> Is this the correct way to