Microdata / Attributes

User 2841431 Photo


Registered User
21 posts

Hi,

Trying to use the Microdata parameters in the Attributes panel but it seems incomplete and doesn't output when exported ? Also noticed that when you choose itemtype and it requires additional parameters like content i.e.

<div itemscope itemtype="http://schema.org/Service">
<meta itemprop="serviceType" content="Home cleaning" />
<span itemprop="provider" itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Jamie's Home Cleaning</span>

There doesn't appear to be a way of entering it ? Am I missing something here ?
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Hi Jamie,
Does the item type show up in the source code on preview in FF?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2841431 Photo


Registered User
21 posts

Hi,

It appears there's a way to do what I'm after.....
1) Create your Itemscope on a parent element
2) On the child element(s) add the attribute properties i.e: itemtype, itemprop
3) When you need to specify additional parameters in variables like content="Test", add an additional attribute and either change the name of a predefined one or select custom in the list and change its name to the one you require (for example content) and in the value field enter the value of content (for example test).

My exported code generated with the following:

<div class="columns small-12" itemscope="" itemtype="http://schema.org/Service">
<h1 content="Oosh of the noosh" itemprop="ServiceType">Heading Level 1</h1>
<h1 itemprop="Provider" content="Noosh Services Plc">Heading Level 1</h1>
</div>

Although the only thing I can't figure out at the moment is how to add a meta tag apart from adding an HTML Element

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.