Structured Data
URL to the page in question:
http://dennysfarmmarket.ca/
-
I am wanting to add some structured data to the website.
Specifically
<div itemscope itemtype=”http://schema.org/Store”>
This particular client has 2 locations, so I am unsure how this will work
I think there is some code built into the theme, tied to the Hours and Contact widget. I have attached 2 screens shots
Can you help me understand what hcard data the widget fields are tied to?
This widget seems to load data as first name and last name?
OR
Can you suggest another way to add this type of data?
I currently use 3 widgets. Perhaps I will change the way I am using the widgets, and give each store its own Hours and Contact widget.
Thank you in advance.
Kais
Good Morning Kais,
You’re welcome to make any edits you’d like to/need to to have your structured data just right. The contact widget has some of that information in it for you. You’ll need to edit it in order to change it. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose widget-contact.php
- This is the section where you’ll make changes:
<div class="address-widget vcard">
<?php if($name) echo '<h3 class="fn widget-title">'.$name.'</h3>'; ?>
<ul class="hours">
<?php if($hours1) echo '<li>'.$hours1.'</li>'; ?>
<?php if($hours2) echo '<li>'.$hours2.'</li>'; ?>
<?php if($hours3) echo '<li>'.$hours3.'</li>'; ?>
<?php if($hours4) echo '<li>'.$hours4.'</li>'; ?>
<?php if($hours5) echo '<li>'.$hours5.'</li>'; ?>
<?php if($hours6) echo '<li>'.$hours6.'</li>'; ?>
</ul>
<?php if($map_url) echo '<a target="_blank" href="'.$map_url.'">'; ?>
<ul class="adr">
<?php if($street) echo '<li>'.$street.'</li>'; ?>
<?php if($address2) echo '<li>'.$address2.'</li>'; ?>
<?php if($city) echo '<li class="locality">'.$city.'</li>'; ?>
</ul>
<?php if($map_url) echo '</a>'; ?>
<ul>
<?php if($phone) echo '<li class="tel"><a href="tel:'.$phone_url.'">'.$phone.'</a></li>'; ?>
<?php if($email) echo '<li class="email"><a href="mailto:'.$email.'">'; ?><?php if($email) echo ''.$email.'</a></li>'; ?>
</ul>
</div>
- Once you’re finished save your changes.
Take care,
Bill
- The topic ‘Structured Data’ is closed to new replies.