Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured data support in Protostar #7192

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Structured data support in Protostar
When an extension enriches it's content with schema.org meta data, then the W3C validator will complain like

`The itemprop attribute was specified, but the element is not a property of any item.
<p itemprop="startDate" content="2015-06-18T21:35:00+00:00">`

This situation can easily be solved with the proposed code change.
  • Loading branch information
laoneo committed Jun 18, 2015
commit ca928b549650793a4818d75879f3393065cf5fa4
2 changes: 1 addition & 1 deletion templates/protostar/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<jdoc:include type="head" />
Expand Down