I'd like to add Schema.org data, and am trying to follow instructions given to me about how to do so. The instructions indicate that I should change my <header> tag from:



<header itemscope="itemscope" itemtype="http://schema.org/WPHeader">

But is this helpful by itself? It appears to merely add blank data. Am I misunderstanding something? Where do I actually assign values to some of the WPHeader properties that pertain to my specific site? Or does merely adding this blank schema template somehow do something for my site? I don't think the instructions have made that clear, but I may have missed something.



I have the impression that many WordPress theme creators add these types. My guess why: These are one of the few types that can be added without knowing the site’s content. The header is the header, no matter what the site about, etc.

But I recommend to omit WebPageElement and its sub-types (currently: SiteNavigationElement, Table, WPAdBlock, WPFooter, WPHeader, WPSideBar).

They are typically useless for webpages, and they can even stand in the way of providing accurate data in RDFa/Microdata.

A few of my related posts, giving more details:


If you only have something like

<header itemscope="itemscope" itemtype="http://schema.org/WPHeader">

then yes, it doesn’t convey any data, other than "There exists a WPHeader."

If you want to add properties, you have to nest elements and add corresponding itemprop attributes. For example, to specify the name of the WPHeader, it could look like:

<header itemscope="itemscope" itemtype="http://schema.org/WPHeader">
  <span itemprop="name">Name of the webpage’s header</span>

Note that this is not for the name of the webpage! This would go under WebPage. It’s really the name of the header (and in almost all cases, you don’t have a name for a webpage header). Which is one of the reasons why types like these aren’t really useful for normal websites.

| improve this answer | |
  • Thanks for confirming that this is not adding any actual data. I've gone back to the person who advised me to add this microdata and asked for the value behind adding blank data like this. The reason I'm asking is that adding the WPHeader schema in microdata format is technically a bit challenging on my site. Adding schema data in JSON-LD format is much easier (using Google Tag Manager). But my issue with doing that for WPHeader is with getting the schema data in JSON-LD format in the first place--I don't know how (easily) do that for a blank template like this. – cag8f Jun 29 '17 at 11:38
  • Also, thanks for the links. I will give a look through them, as they appear to be useful in my situation. – cag8f Jun 29 '17 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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