{"id":819,"date":"2025-03-24T14:27:46","date_gmt":"2025-03-24T14:27:46","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-embed\/"},"modified":"2025-04-03T15:24:06","modified_gmt":"2025-04-03T14:24:06","slug":"gd-embed","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/embeddable-ratings-badge\/gd-embed\/","title":{"rendered":"GD > Embed"},"content":{"rendered":"<section class=\"alert alert-success dashed\">\n<p> All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/\">Super Duper Widgets<\/a>.<\/section>\n<p> The <strong>GD &gt; Embed <\/strong>widget shows a button that can be used to get embed code for the current listing. Users can simply&nbsp; click the button to grab the embed code, and then use the same to embed the listing on their sites.&nbsp;<\/p>\n<p> It is recommended to display this widget on <strong>Listing Details <\/strong>page.&nbsp;<\/p>\n<p> <strong><\/strong><\/p>\n<h2>Widget Options<\/h2>\n<ul>\n<li><strong>Badge &#8211; <\/strong>The text of the badge. If left blank, it shows the field title as the badge text.&nbsp;<\/li>\n<li><strong>Icon Class (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>The Font Awesome icon class to be displayed on the button.&nbsp;<\/li>\n<li><strong>Show to &#8211; <\/strong>Choose whether to show it to everyone, or only logged in users, or only listing owners.&nbsp;<\/li>\n<li><strong>Badge Background Color&nbsp;<\/strong><strong>(<\/strong><a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\" style=\"font-weight: bold;\">A<\/a><strong>) &#8211; <\/strong>The background color of the badge.&nbsp;<\/li>\n<li><strong>Badge Text Color&nbsp;(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>The text color of the badge.&nbsp;<\/li>\n<li><strong>Badge Size (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Choose the badge size.&nbsp;<\/li>\n<li><strong>Alignment (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Choose the badge alignment.&nbsp;<\/li>\n<li><strong>Hide Item on View (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Choose if the item is hidden on a given view.&nbsp;<\/li>\n<li><strong>Hide Secondary Info on View (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Choose if any secondary info is hidden on a particular view.&nbsp;<\/li>\n<li><strong>Extra Class (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Specify an extra styling class for the wrapper.&nbsp;<\/li>\n<li><strong>Show\/Hide Options (Widget only) &#8211; <\/strong>Choose where the widget should be displayed. <strong><br \/> <\/strong><\/li>\n<li><strong>GD Pages &#8211; <\/strong>Select the GeoDirectory pages on which the widget should be displayed.&nbsp;<\/li>\n<\/ul>\n<h2>Example Output<\/h2>\n<p> Sample output, on Single Listing page:&nbsp;<strong><br \/> <\/strong><\/p>\n<p><img width=\"920\" height=\"456\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-6kBEmS5n2S-1024x508.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-6kBEmS5n2S-1024x508.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-6kBEmS5n2S-300x149.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-6kBEmS5n2S-768x381.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-6kBEmS5n2S.png 1150w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>Upon clicking the button, the Customizer is shown for the embed code:&nbsp;<\/p>\n<p><img width=\"920\" height=\"513\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-BwCNAFSsTI-1.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-BwCNAFSsTI-1.png 942w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-BwCNAFSsTI-1-300x167.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-BwCNAFSsTI-1-768x428.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p> <strong><\/strong><\/p>\n<p> <strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The GD &gt; Embed widget shows a button that can be used to get embed code for the current listing. Users can simply&nbsp; click the button to grab the embed code, and then use the same to embed the listing [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,409],"class_list":["post-819","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-embeddable-ratings-badge"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=819"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/819\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=819"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=819"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}