Search

Hi,

I am trying to simply add content as per google recomendation:

https://support.google.com/webmasters/answer/146645?hl=en

<div>
  <div itemscope itemtype="http://data-vocabulary.org/Review">
    <span itemprop="itemreviewed">L’Amourita Pizza</span>
    Reviewed by <span itemprop="reviewer">Ulysses Grant</span> on
    <time itemprop="dtreviewed" datetime="2009-01-06">Jan 6</time>.
    <span itemprop="summary">Delicious, tasty pizza in Eastlake!</span>
    <span itemprop="description">L'Amourita serves up traditional wood-fired Neapolitan-style pizza, 
      brought to your table promptly and without fuss. An ideal neighborhood pizza joint.</span>
    Rating: <span itemprop="rating">4.5</span>
  </div>
</div>

Obviously the validation fails. How can I add it so that it works?

Thanks in advance for your help.

As you have already been told, this is not a forum for (X)HTML/XML validation. If you want to work with Symphony (which is great, of course), please make yourself feel comfortable with XML and XML-type languages. The community here is very helpful, but we hardly find the time to answer questions which are not related to Symphony.

If it is the itemscope bit that is causing it to fail then you can put itemscope="" instead.

Google has a bad habit of providing technically un-semantic code. The above is likely the solution here, but watch out for unescaped elements as well.

i.e.

<input name="Name" value="">

should be

<input name="Name" value="" />

etc.

Just a tip that might save you some angry moments.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details