{"id":4152,"date":"2021-07-16T10:46:20","date_gmt":"2021-07-16T10:46:20","guid":{"rendered":"https:\/\/structured-data-for-wp.com\/docs\/?post_type=ht_kb&#038;p=4152"},"modified":"2021-07-16T13:21:39","modified_gmt":"2021-07-16T13:21:39","slug":"how-to-show-localbusiness-schema-data-on-page-content-using-shortcode-gutenberg-block-and-widget","status":"publish","type":"ht_kb","link":"https:\/\/structured-data-for-wp.com\/docs\/article\/how-to-show-localbusiness-schema-data-on-page-content-using-shortcode-gutenberg-block-and-widget\/","title":{"rendered":"How to show LocalBusiness schema data on page content using shortcode, Gutenberg block and widget."},"content":{"rendered":"\n<p>In this tutorial, we will show you how to show LocalBusiness schema data on-page content using shortcode, Gutenberg block, and widget for this follow the below instruction.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You can edit post\u2019s page for this you need to go to the\u00a0<strong>WordPress Dashboard<\/strong>\u00a0->\u00a0<strong>Structured Data<\/strong>\u00a0->\u00a0<strong>Schema Types<\/strong>\u00a0-> Select Loacl Business schema type you want to edit and click on this \u201c<strong>Modify Schema Output<\/strong>\u201d option and choose\u00a0<strong>Manual\u00a0<\/strong>option. Once you select the\u00a0<strong>Manual\u00a0<\/strong>option you can manually add then information as per your requirement and then click on the \u201c<strong>Update<\/strong>\u201d button. like below the screenshot.<\/li><\/ul>\n\n\n\n<p><strong>This is how the Schema type edit screen looks like:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-1024x471.png\" alt=\"\" class=\"wp-image-4169\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-1024x471.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-300x138.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-768x353.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-50x23.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-60x28.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18-100x46.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/18.png 1349w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>We have three ways to show LocalBusiness schema data on-page content<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/structured-data-for-wp.com\/docs\/article\/how-to-show-localbusiness-schema-data-on-page-content-using-shortcode-gutenberg-block-and-widget\/#1-using-gutenberg-block\">Using Gutenberg Block<\/a><\/li><li><a href=\"https:\/\/structured-data-for-wp.com\/docs\/article\/how-to-show-localbusiness-schema-data-on-page-content-using-shortcode-gutenberg-block-and-widget\/#2-using-widget\">Using Widget<\/a><\/li><li><a href=\"https:\/\/structured-data-for-wp.com\/docs\/article\/how-to-show-localbusiness-schema-data-on-page-content-using-shortcode-gutenberg-block-and-widget\/#3-using-shortcode\">Using shortcode\u00a0<\/a><\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><mark>1. Using Gutenberg Block<\/mark><\/h4>\n\n\n\n<p>If you want Location schema on your site then you\u2019ll add a Location structured data block. You can now easily add the structured data needed for search engines to understand Location. Click on the publish button and your perfectly structured Location block is ready.<\/p>\n\n\n\n<p><strong>Follow the steps to add a Location to your site:<\/strong><\/p>\n\n\n\n<p><strong>Step 1 \u2013&nbsp;<\/strong>Open a post in the block editor or add a new one<\/p>\n\n\n\n<p><strong>Step 2 \u2013<\/strong>\u00a0Click on the + button and pick the Schema &amp; Structured Data Blocks Location(SASWP) block<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"410\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10.png\" alt=\"\" class=\"wp-image-4155\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10.png 511w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10-300x241.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10-50x40.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10-60x48.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/10-100x80.png 100w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/figure>\n\n\n\n<p><strong>Step 3 \u2013<\/strong>\u00a0In the block, you need to select Location block like below the screenshot<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"323\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11.png\" alt=\"\" class=\"wp-image-4158\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11.png 874w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11-300x111.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11-768x284.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11-50x18.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11-60x22.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/11-100x37.png 100w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">The Output of the Location(SASWP) block<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-1024x406.png\" alt=\"\" class=\"wp-image-4159\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-1024x406.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-300x119.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-768x305.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-50x20.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-60x24.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12-100x40.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/12.png 1348w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 5 \u2013<\/strong>&nbsp;Once you are done, click on the \u201c<strong>publish<\/strong>\u201d button.<\/p>\n\n\n\n<p><strong>Step 6 \u2013\u00a0<\/strong>You can test it in the\u00a0<a href=\"https:\/\/search.google.com\/structured-data\/testing-tool\">Structured Data Testing Tool<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"498\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-1024x498.png\" alt=\"\" class=\"wp-image-4160\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-1024x498.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-300x146.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-768x373.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-50x24.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-60x29.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13-100x49.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/13.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 7 \u2013<\/strong>\u00a0Test the Location in Google\u2019s Rich Results Testing Tool<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"389\" height=\"583\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14.png\" alt=\"\" class=\"wp-image-4161\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14.png 389w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-200x300.png 200w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-33x50.png 33w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-40x60.png 40w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-67x100.png 67w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/figure>\n\n\n\n<p><strong>Note:<\/strong> In one post\/page you can add only one saswp block.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><mark>2. Using Widget<\/mark><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Once you install and activate our\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/schema-and-structured-data-for-wp\/\"><strong>Schema &amp; Structured Data for WP<\/strong><\/a> plugin you can see the SASWP Location widget available widgets area<\/li><li>You can find this widget on your own site by going to the\u00a0<strong>Appearance -> Widgets<\/strong>\u00a0page in your WordPress admin area.<\/li><li>Choose the SASWP Location option and click\u00a0<strong>Add Widget<\/strong> and select Local Business like below the screenshot.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"353\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-1024x353.png\" alt=\"\" class=\"wp-image-4164\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-1024x353.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-300x103.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-768x265.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-50x17.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-60x21.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1-100x34.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/14-1.png 1345w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">The Output of the Location(SASWP) widget<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-1024x499.png\" alt=\"\" class=\"wp-image-4165\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-1024x499.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-300x146.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-768x374.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-50x24.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-60x29.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15-100x49.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/15.png 1349w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><mark>3. Using shortcode<\/mark><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Check this Display on Page Content option and then copy this shortcode and place where you want to display the LocalBusiness schema data on page content using shortcode.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"411\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-1024x411.png\" alt=\"\" class=\"wp-image-4167\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-1024x411.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-300x120.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-768x308.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-50x20.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-60x24.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16-100x40.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/16.png 1342w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Create new Post \/Page and in this posts, Add shortcode like below the screenshot.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"291\" src=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-1024x291.png\" alt=\"\" class=\"wp-image-4168\" srcset=\"https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-1024x291.png 1024w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-300x85.png 300w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-768x218.png 768w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-50x14.png 50w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-60x17.png 60w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17-100x28.png 100w, https:\/\/structured-data-for-wp.com\/docs\/wp-content\/uploads\/2021\/07\/17.png 1339w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions or do you want us to create compatibility for any other schema type which isn\u2019t listed in our plugin then you can request us we will surely implement it as soon as possible.<\/p>\n\n\n\n<p><strong>Just contact us&nbsp;<a href=\"http:\/\/structured-data-for-wp.com\/contact-us\/\">here<\/a>&nbsp;and we are always available for you.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to show LocalBusiness schema data on-page content using shortcode, Gutenberg block, and widget for this follow the below instruction. You can edit post\u2019s page for this you need to go to the\u00a0WordPress Dashboard\u00a0->\u00a0Structured Data\u00a0->\u00a0Schema Types\u00a0-> Select Loacl Business schema type you want&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[3],"ht-kb-tag":[],"class_list":["post-4152","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to"],"_links":{"self":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/comments?post=4152"}],"version-history":[{"count":10,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4152\/revisions"}],"predecessor-version":[{"id":4172,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4152\/revisions\/4172"}],"wp:attachment":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/media?parent=4152"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=4152"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=4152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}