Mobile app version of vmapp.org
Login or Join
Voss4911412

: Can WPAdBlock be a child of WPSideBar? I want to markup my ads with schema.org microdata, but my ads reside inside a sidebar (which I think is typical?) and sometimes even within the main

@Voss4911412

Posted in: #Microdata #SchemaOrg

I want to markup my ads with schema.org microdata, but my ads reside inside a sidebar (which I think is typical?) and sometimes even within the main content. As far as I can see WPAdBlock is a sibling of WPSideBar. So my question is, can you nest WPPageElements like that (placing the WPAdBlock inside the WPSideBar e.g.)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Voss4911412

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

It does not matter how you nest elements in Microdata, unless you use a property (itemprop).

These two snippets produce the same Microdata:

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

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


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

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

</div>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme