{"id":3461,"date":"2017-01-28T09:22:49","date_gmt":"2017-01-28T16:22:49","guid":{"rendered":"http:\/\/www.new.www.structuredseo.com\/?p=3461"},"modified":"2019-04-04T09:01:52","modified_gmt":"2019-04-04T16:01:52","slug":"how-to-fix-schema-markup-errors-using-googles-structured-data-tool","status":"publish","type":"post","link":"https:\/\/www.structuredseo.com\/how-to-fix-schema-markup-errors-using-googles-structured-data-tool\/","title":{"rendered":"How to Fix Schema Markup Errors Using Google’s Structured Data Tool"},"content":{"rendered":"
[et_pb_section bb_built=”1″ admin_label=”section” transparent_background=”off” allow_player_pause=”off” inner_shadow=”off” parallax=”off” parallax_method=”on” custom_padding=”50px|0px|1px|0px” make_fullwidth=”off” use_custom_width=”off” width_unit=”off” custom_width_px=”1080px” custom_width_percent=”80%” make_equal=”off” use_custom_gutter=”off” fullwidth=”off” specialty=”off” disabled=”off” prev_background_color=”#000000″ next_background_color=”#ffffff”][et_pb_row admin_label=”row” make_fullwidth=”off” use_custom_width=”off” width_unit=”off” custom_width_px=”1080px” custom_width_percent=”80%” use_custom_gutter=”off” gutter_width=”3″ custom_padding=”25.2188px|0px||0px” custom_margin=”|||” allow_player_pause=”off” parallax=”off” parallax_method=”on” make_equal=”off” parallax_1=”off” parallax_method_1=”on” parallax_2=”off” parallax_method_2=”on” parallax_3=”off” parallax_method_3=”on” parallax_4=”off” parallax_method_4=”on” custom_margin_phone=”||-50px|” custom_margin_last_edited=”on|desktop” disabled=”off” background_position=”top_left” background_repeat=”repeat” background_size=”initial”][et_pb_column type=”4_4″][et_pb_post_title title=”on” meta=”on” author=”on” date=”on” date_format=”M j, Y” categories=”on” comments=”off” featured_image=”off” featured_placement=”above” parallax_effect=”on” parallax_method=”off” text_orientation=”left” text_color=”dark” text_background=”off” text_bg_color=”rgba(255,255,255,0.9)” module_bg_color=”#ffffff” meta_text_color=”#0c71c3″ use_border_color=”off” border_color=”#ffffff” border_style=”solid” disabled=”off” background_color=”#ffffff” parallax=”on” \/][et_pb_text use_border_color=”off” disabled=”off” module_alignment=”left” background_position=”top_left” background_repeat=”repeat” background_size=”initial” _builder_version=”3.21.1″ z_index_tablet=”500″]<\/p>\n
Schema markup can be a bit confusing at first, but we can use tools such as Google\u2019s Structured Data Tool to help us create and check our schema for errors. <\/span><\/p>\n In this article, I\u2019m going to focus on <\/span>using <\/span>JSON-L<\/span>D (JavaScript Object Notation for Linked Data) <\/span><\/a>for two reasons.<\/span><\/p>\n The process for fixing schema errors using other schema types (Microdata or RDFa) may differ, but the steps to find them are the same.<\/p>\n Once we have decided on what schema<\/a> we want to add to our website we can use Google\u2019s Structured Data tool in several ways:<\/span><\/p>\n We are going to focus on number two and three.<\/span><\/p>\n Before inserting your schema markup, we want to make sure the code has been checked for errors. For this demonstration, I\u2019m going to use an example of schema for a local business.<\/span><\/p>\n Let\u2019s copy and paste the code into <\/span>Google\u2019s Structured Data Tool<\/span><\/a>. Make sure and use the \u201cCODE SNIPPET\u201d feature. Then press \u201cRUN TEST.\u201d<\/span><\/p>\n <\/p>\n Schema errors can come in several forms:<\/p>\n In this case, we can see from the red x that Google expects to have an \u201cimage\u201d property when the \u201cLocalBusiness\u201d type schema is present.<\/span><\/p>\n <\/p>\n So let\u2019s first try adding an image property to our example. If you\u2019re not sure what the property schema looks like we can\u00a0easily locate an example we can use.<\/span><\/p>\n Under this tab, we can find the \u201cimage\u201d property.<\/span><\/p>\n <\/p>\n Let\u2019s cut and paste the new property right after the last property and press the refresh arrow at the bottom.<\/span><\/p>\n <\/p>\n Now we can see a new error \u201cMissing ‘,’ or ‘}’ in object declaration.\u201d This is a common error when punctuation such as a comma or brackets are missing. There should always be a comma after each property except the last. So let\u2019s add a comma after the bracket ( ] ) and remove the last one. Then press refresh again.<\/span><\/p>\n <\/p>\n So we can see it removed the error, but we have a new error. If we read the error listed, it says we need a valid URL. The URL I used was just an example so let\u2019s replace the \u201cimage\u201d property text with the URL for my actual logo for my site.<\/span><\/p>\n <\/p>\n We can see now, the errors have been fixed and all the mandatory fields are populated. It\u2019s important that all errors are corrected, or it defeats the whole purpose of using schema. To help search engines better understand the contents of your web pages.<\/span><\/p>\n Once we have completed our schema markup, we can add it to the corresponding page. How you do this depends on what content management system (CMS) you\u2019re using. <\/span><\/p>\n I\u2019m using a theme called Divi built on WordPress. The theme allows me to add separate modules such as text, code, etc. <\/span><\/p>\n For demonstration purposes, I\u2019ve placed some fictitious information on a web page and added a separate module where I placed the JSON-LD. <\/span><\/p>\n Remember JSON-LD isn\u2019t going to have any effect on the actual rendering of the page for visitors. It is like your meta description just information that search engines use. <\/span><\/p>\n Once I\u2019m done I\u2019m going to publish the page and go to Google\u2019s Structured Data tool. Copy and paste the URL in the correct box \u201cFETCH URL\u201d and press \u201cRUN TEST.\u201d<\/span><\/p>\n <\/p>\n Here are the results.<\/span><\/p>\n <\/p>\n We can see I have a few errors. The errors are because the URL\u2019s are fictitious. If we replace them with working URL\u2019s the errors would be corrected. <\/span><\/p>\n How the web page appears to a visitor.<\/span><\/p>\n <\/p>\n Now I can format the information on this page however I wish, and it will not affect the JSON-LD.<\/span><\/p>\n As you can see, Google\u2019s Structured Data tool is important in finding and fixing schema errors. It can be very confusing at first trying to figure out exactly how to address errors. With time and practice, it becomes much easier. You will find many times it is just a matter of misplaced punctuation or missing property. Here are some more guides<\/a> on structured data.<\/p>\n [\/et_pb_text][et_pb_button admin_label=”Help Me With My Schema” button_text=”Help Me With My Schema” button_alignment=”center” background_layout=”dark” custom_button=”on” button_text_size=”15″ button_bg_color=”#9b0606″ button_border_radius=”10″ button_icon=”I” button_on_hover=”off” disabled=”off” saved_tabs=”all” _builder_version=”3.21.1″ button_url=”https:\/\/www.structuredseo.com\/structured-data-help\/” button_rel=”||off||” button_text_size__hover_enabled=”off” button_text_size__hover=”null” button_one_text_size__hover_enabled=”off” button_one_text_size__hover=”null” button_two_text_size__hover_enabled=”off” button_two_text_size__hover=”null” button_text_color__hover_enabled=”off” button_text_color__hover=”null” button_one_text_color__hover_enabled=”off” button_one_text_color__hover=”null” button_two_text_color__hover_enabled=”off” button_two_text_color__hover=”null” button_border_width__hover_enabled=”off” button_border_width__hover=”null” button_one_border_width__hover_enabled=”off” button_one_border_width__hover=”null” button_two_border_width__hover_enabled=”off” button_two_border_width__hover=”null” button_border_color__hover_enabled=”off” button_border_color__hover=”null” button_one_border_color__hover_enabled=”off” button_one_border_color__hover=”null” button_two_border_color__hover_enabled=”off” button_two_border_color__hover=”null” button_border_radius__hover_enabled=”off” button_border_radius__hover=”null” button_one_border_radius__hover_enabled=”off” button_one_border_radius__hover=”null” button_two_border_radius__hover_enabled=”off” button_two_border_radius__hover=”null” button_letter_spacing__hover_enabled=”off” button_letter_spacing__hover=”null” button_one_letter_spacing__hover_enabled=”off” button_one_letter_spacing__hover=”null” button_two_letter_spacing__hover_enabled=”off” button_two_letter_spacing__hover=”null” button_bg_color__hover_enabled=”off” button_bg_color__hover=”null” button_one_bg_color__hover_enabled=”off” button_one_bg_color__hover=”null” button_two_bg_color__hover_enabled=”off” button_two_bg_color__hover=”null” z_index_tablet=”500″ global_module=”6356″ \/][et_pb_text admin_label=”Replaces Comments (Posts above author bio)” _builder_version=”3.14″ saved_tabs=”all” global_module=”5925″]<\/p>\n\n
Different Ways to Use Google’s Structured Data Tool<\/strong><\/h2>\n
\n
How to Check Scheme Markup for Errors<\/strong><\/h2>\n
<script type=\"application\/ld+json\">\r\n{\r\n \"@context\": \"http:\/\/schema.org\",\r\n \"@type\": \"LocalBusiness\",\r\n \"address\": {\r\n \"@type\": \"PostalAddress\",\r\n \"addressLocality\": \"Boise\",\r\n \"addressRegion\": \"ID\",\r\n \"postalCode\":\"83702\",\r\n \"streetAddress\": \"620 E Holly St\"\r\n },\r\n \"description\": \"Put your description here.\",\r\n \"name\": \"The Best Store\",\r\n \"telephone\": \"111-222-3333\",\r\n \"openingHours\": \"Mo,Tu,We,Th,Fr 08:00-15:00\",\r\n \"geo\": {\r\n \"@type\": \"GeoCoordinates\",\r\n \"latitude\": \"43.61\",\r\n \"longitude\": \"116.21\"\r\n }, \t\t\t\r\n \"sameAs\" : [\"http:\/\/www.facebook.com\/example\",\r\n \"http:\/\/www.twitter.com\/example\",\r\n \"http:\/\/plus.google.com\/example\"]\r\n\t}\r\n<\/script>\r\n<\/pre>\n
Common Schema Errors<\/b><\/h2>\n
\n
How to Replace a Missing Schema Property<\/b><\/h2>\n
\n
Check Web Page for Schema Markup Errors<\/b><\/h2>\n
Final Thoughts<\/b><\/h2>\n