• Anonymous User 9344527

    (@anonymized-9344527)


    Hello,

    when i insert some meta tags from schema.org in a page/post like:

    <meta itemprop="duration" content="01M50S" />

    – direct in the post, not in the template.

    On the frontpage the tags are creating white space like a  

    Is there are solution for this problem?

    Thanks a lot!

Viewing 6 replies - 1 through 6 (of 6 total)
  • That line needs to go into the <head></head> section of your pages – not in the content.

    Thread Starter Anonymous User 9344527

    (@anonymized-9344527)

    Hey,

    thanks but i dont think so. For example with a Article:

    <div itemscope itemtype="https://schema.org/Article">
      <span itemprop="name">How to Tie a Reef Knot</span>
      by <span itemprop="author">John Doe</span>
      This article has been tweeted 1203 times and contains 78 user comments.
      <meta itemprop="interactionCount" content="UserComments:78"/>
    </div>

    You carnt insert this line <meta itemprop="interactionCount" content="UserComments:78"/>

    In the <head> section, cause it must be inside the arcticle div’s

    But when i post the meta Data <meta itemprop="interactionCount" content="UserComments:78"/> inside the article/post/page there a whitespace inside my post on frontend :-/

    thanks but i dont think so.

    I beg to differ. All meta tags belong in the <head></head> section of pages.
    https://www.w3schools.com/tags/tag_meta.asp

    Thread Starter Anonymous User 9344527

    (@anonymized-9344527)

    Now look where the meta tag is being inserted in those examples.

    Thread Starter Anonymous User 9344527

    (@anonymized-9344527)

    Sorry for my english but it’s a official schmea.org example:

    <div itemscope itemtype="https://schema.org/Article">
      <span itemprop="name">How to Tie a Reef Knot</span>
      by <span itemprop="author">John Doe</span>
      This article has been tweeted 1203 times and contains 78 user comments.
      <meta itemprop="interactionCount" content="UserComments:78"/>
    </div>

    The meta tags are inside the div inside the body tag, but on wordpress i get trouble with whitespaces wo the meta tag…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘schem.org in Pages and Posts creating whitespace’ is closed to new replies.