Does Yola automatically create an hCard script?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Does Yola automatically create an hCard script, which is important for local SEO?

If not, how can I add it manually myself?

Thanks,

Pete
Photo of peterskuse

peterskuse

  • 8 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
You can do this with some mark-up and style it as you like with some CSS.

http://dev.opera.com/articles/view/in...
Photo of peterskuse

peterskuse

  • 8 Posts
  • 0 Reply Likes
Don't understand what you mean I'm afraid.

How do I add the hCard HTML code onto my home page?

Pete
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
You need to do this with HTML.

an example is here:
<div class="vcard">
<span class="fn n">Jack Tripper</span>
<div class="org">Jack's Bistro</div>
<div class="adr">
<div class="street-address">834 Ocean Vista Ave.</div>
<span class="locality">Santa Monica</span>,
<span class="region">CA</span>,
<span class="postal-code">90405</span>
</div>
</div>


In this example you can see the reserved class names surrounded by inverted commas and angle brackets. After the first closing angle bracket is where you place your corresponding real data element.

hCard's have a strict list of classes but there are many of them so you work out the format of your personal hCard and then select the classes that fit with this.

The reserved list of classes is:
Properties (Class Names)
vcard {1}
adr*
type [work|home|pref|postal|dom|intl]?
post-office-box?
street-address*
extended-address?
region?
locality?
postal-code?
country-name?
agent*
bday? (ISO date)
class? confidentiality/access classification of the entire hCard
category*
email*
type?
value?
fn {1}
geo?
latitude?
longitude?
key*
label*
logo*
mailer*
n?
honorific-prefix*
given-name*
additional-name*
family-name*
honorific-suffix*
nickname*
note*
org*
organization-name?
organization-unit*
photo*
rev? datetime of the revision of the entire hCard
role*
sort-string?
sound*
tel* (Note E.123 for formatting info.)
type [home|work|pref|fax|cell|pager]?
value?
title*
tz? timezone of the person
uid? applies to the entire hCard
url*


If you give me an example of the details you wish to include in an hCard I can create a mock-up for you then all you would need to do is to substitute your real data into the template if you like?
Photo of peterskuse

peterskuse

  • 8 Posts
  • 0 Reply Likes
Thanks, but I know what I need to add. What I don't know is how I add the hCard code to my website, as I can't see any access to a Yola web page HTML code in order to modify it.
Pete
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Try the HTML widget. Selected by first selecting: Widgets>Basic>HTML.

Drag this onto your page(s) and then add the code to it.
Photo of peterskuse

peterskuse

  • 8 Posts
  • 0 Reply Likes
No, the HTML widget doesn't add HTML to the page code i.e. In the section etc.

Does anyone know how to do this or is this not possible with Yola?

Pete
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
You can add it to the Site>Site Settings>Site Tracking Code>Header Code.

That is the portal to the head section of the site available for Silver subscribers.
Photo of peterskuse

peterskuse

  • 8 Posts
  • 0 Reply Likes
Thought it might involve upgrading. Many thanks.
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hello Peter

It will involve upgrading if you only have Yola Free or Yola Bronze. The Site Tracking Code section is accesible for Yola Silver and Yola Gold users. Please make sure you'll know what you add to this sensitive section. If you add invalid or incorrect code there, it may break your entire site which can make your site inaccesible via the SiteBuilder, so that you would need to rebuild your site from scratch. Thanks.