FidoSysop Blog

Fixing Broken Structured Data Elements In Artisteer Themes

Artisteer Structured Data Mods

Are you using an Artisteer 4.2 generated theme with WordPress and experiencing Google Webmaster Tools structured data Hentry or Hcard errors?

If so here is the quick easy fix for ya.. 😉

There are several articles dealing with structured data errors on the net, but none were written specifically for Artisteer which has a different file structure. So since i have been battling this problem for probably three months or better I decided to lay this out for any others using Artisteer.

To cure your structured data errors three Artisteer files need to be modified. You can not do this in the Artisteer editor itself. Use a text editor of some kind. I use an old version of MS FrontPage in code view. Or WordPress’s built in theme editor will work.

Be careful before starting this procedure because if things don’t go as planned your site might crash.

Make a backup of these 3 files that are in your theme directory via ftp before starting. If something goes wrong you can upload your saved original files.

function.php
content-page.php
/library/wrappers.php

The fix for “Error: Missing required hCard “author” is in the file wrappers.php.

if (!theme_is_empty_html($title)) {
	echo '< '.$heading.' class="art-postheader title">'.$title.'';

Just add “entry-“ to the line that says title. as shown below.

if (!theme_is_empty_html($title)) {
	echo '< '.$heading.' class="art-postheader entry-title">'.$title.'';

Error message: Missing required field “updated”
Open the file functions.php and look for the following paragraph.

sprintf(‘class=”entry-date” title=”%1$s”>%2$s’

Add “date updated” as it is displayed below.

sprintf(‘class=”entry-date date updated” title=”%1$s”>%2$s’

The last fix has to deal with Pages errors. By default Artisteer does not add “Author” and “Date” to WordPress theme “Pages.”

My thought on this modification are. IF your site is using a static page for your home or default landing page, it will still show an error in Google’s Structured Data Testing Tool. So it might be a good idea to fix this too. But be advised your landing or other pages will show the page Author and Published Date.

The fix for this is located in the file “content-page.php” Open it and look for this line.

'before' => theme_get_metadata_icons('edit', 'header'),

Add the words as shown below.

'before' => theme_get_metadata_icons('date,author,edit', 'header'),

This will cure your pages errors. If you do not use any pages on your site there really is no need for this one.

In theory these three files are the same in many different Artisteer themes that were created in Artisteer Version 4.2. I have just copied and overwritten these 3 files in several of my clients websites. Beats going into every site you have built and modifying each one.

Also be advised if modifying your WordPress theme in Artisteer’s editor it will overwright any changed you have made to your theme files. Best bet is to put these three files in a safe place. Then after modifying your theme just re-upload them to your theme directory.

I will leave you with this final tidbit.

google authorship search result with no thumbnaid

If your Authorship thumbnail is not showing in search results, it may not be because your authorship is set up wrong, or your site is not properly serving it’s structured data to the Googlebot.

My thumbnail has disappeared from search results, but my name is still showing. I’m hoping it was just because of my themes inability to serve the correct data up. It’s only been a few days after fixing my problems when i published this article.

In this article, Google is saying they may not show your thumbnail if they don’t think it will benefit the searcher. “Please note that Google will only show your author portrait in search results when we think it will be useful to the user. Learn more.”

It’s my belief that fixing any existing structured data errors will increase your chances of being shown to searchers.

Update 04/11/2015: I recently updated my Artisteer program to V4.3.0.60745. This is a really good update since the above structured data errors apparently are fixed. Also a huge improvement in Artisteer’s responsive design. With my sites i eliminate the sidebar completely in smartphone responsive view. Here is a link showing how to do that easy mod.

Best wishes. If you a question leave a comment below 😉