Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have an Element in My website that it shows last update of my website:

My curect structure of website is this:

<body itemscope itemtype="http://schema.org/webpage"

   <div itemscope itemtype="http://schema.org/WPSideBar>
       <div>...some text...</div>
       <div>last update: 23/1/2014</div> //last update for whole site
   <div/>

</body>

The 'last update' is for whole website. Not for sidebar! Can I used 'itemtype' twice to solved this problem?

for example Do you think this is correct?

<body itemscope itemtype="http://schema.org/webpage"

   <div itemscope itemtype="http://schema.org/WPSideBar>

      <div>...some text...</div>
      <div itemscope itemtype="http://schema.org/webpage">
         <span itemscope="name">last update: </span>
         <time itemprop="datePublished" datetime="2014-01-23 13:52:00">23/1/2014</time>
      </div>
   <div/>

</body>
share|improve this question

1 Answer 1

up vote 0 down vote accepted

No, you should not add several items which are about the same thing on the same page.

If the datePublished is the publication date for your whole page, it has to be nested under ẀebPage and not under WPSideBar.

You could use the itemref attribute if you can’t nest it directly under WebPage, but you’d still have to remove it from WPSideBar. Unless you want this date to be associated with the WPSideBar in addition. If that’s the case, you could use:

<!-- here the 'datePublished' applies to both, the WebPage *and* the WPSideBar -->
<div itemscope itemtype="http://schema.org/WebPage" itemref="foobar">

   <div itemscope itemtype="http://schema.org/WPSideBar">
     <time itemprop="datePublished" datetime="2014-01-23 13:52:00" id="foobar">23/1/2014</time>
   </div>      

</div>

(Note that it’s http://schema.org/WebPage, not http://schema.org/webpage.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.