WordPress.org

Ready to get started?Download WordPress

Forums

How to add an attribute to the tag (1 post)

  1. daniel0780
    Member
    Posted 1 year ago #

    Dear all,

    I would like to add an attribute to the body tag of the main page, and another attribute to the body tag of the post pages.

    It would look like:
    <body itemscope itemtype="http://schema.org/WebPage"> for the main page, and <body itemscope itemtype="http://schema.org/ItemPage"> for the post pages. Is there any way I can accomplish that?

    Thanks in advance for your help,

    Best Regards,

    Daniel

Topic Closed

This topic has been closed to new replies.

About this Topic