Header

How to fix microdata or structured data errors in Joomla

Microdata or Structured Data was introduced in Joomla 3.3 and you can test how Google sees any page by going to the Google Structured Data Testing Tool

If you find errors in your test results, here are some ways to fix that.

 

Entering microdata with JCE

If you use the JCE text editor, it has microdata button in the toolbar , if you don't see it, check that it's enabled in components > JCE > editor profiles > your profile > features and layout. Enter the microdata as required then check with the structured data testing tool again.

Joomla Overrides

If you are familiar with Joomla overides, then it's easy to remove the microdata that's automatically inserted by Joomla and add your own custom structured data.

(1) Override /components/com_content/views/article/tmpl/default.php 

(2) Locate and remove this blockdefault_php.jpg

(3) Add your own custom structured data. There are various ways to prepare your own custom data, Google has some good guidelines here. From this same page, look under feature guides >  content types for code examples for many types of business, e.g. local business

(4) Customise the structured data as needed, eg

Introduction_to_Structured_Data_ _ _Search_ _ _Google_Developers.jpg

(5) Add this JSON-LD data to your page either using a custom HTML module, or insert into the template itself

 

Test Internet Explorer and…

Cross-browser testing on Mac OSX: Emulate Internet Explorer, Android and Window phones…

Track WordPress Contact Form…

How to Track WordPress Contact Form 7 (CF7) form submission with Google Tag Manager (GTM)…

Configure MX for a subdomain…

How to Configure MX records for a subdomain on ProtonMail If you are configuring a…

Joomla error "1030 - Got…

Joomla error "1030 - Got error 28 from storage engine" If you get this Joomla 1030 error…

Sublime shortcut to wrap…

Sublime shortcut to wrap selected text in a tag This is a super-useful Sublime shortcut…

How to enable GA enhanced…

How to enable GA enhanced link attribution in GTM Enabling enhanced link attribution in…

Optimising images and…

Optimising images and reducing file sizes It's sometimes difficult to create fast loading…

Joomla error 500 - Unable to…

Joomla error 500 - Unable to load renderer class If you get a Joomla error 500 - Unable…

Using system font stack for a…

Using system font stack for a website This is an interesting idea that I'm seeing more…

How to open winmail.dat files…

How to open winmail.dat files on Mac OSX If you are on Mac OSX, you may occasionally…

CSS wildcard selectors with…

How to use wildcard CSS selectors with LESS If you are using LESS and need to use a…

How to fix a missing Admin…

How to fix a missing Admin Toolbar at the top of a WordPress page Working on an a…

How to add a CiviCRM…

How to add a CiviCRM extension to Joomla As you probably know, CiviCRM comes bundled with…

How to configure MailGun and…

How to configure MailGun and Google Business Apps in CiviCRM When configuring SMTP mail…

Warning JUser: :_load:…

Joomla Warning JUser: :_load: Unable to load user with ID: 62 If you see a Joomla warning…

How to prevent duplicate URLs…

How to prevent duplicate URLs with sh404SEF If you use sh404SEF and can't solve problems…

What is the 'Itemid' in a…

What is the 'Itemid' in a Joomla URL? If you examine the non-SEF url of a typical page on…

JLIB_APPLICATION_ERROR_COMPONE…

After upgrading from Joomla 3.5 to Joomla 3.6.0 I suddenly got a…

How to Launch Sublime Text…

How to Launch Sublime Text from Terminal or iTerm in OSX I've been working a lot with…

Customise a Joomla template…

How to customise a Joomla template based on article ID Working on a custom Joomla…

2013 - The Year of Responsive…

2013 -The Year of Responsive Web Design Some trends come and go. Others gather momentum…