{"id":388,"date":"2020-05-13T12:17:47","date_gmt":"2020-05-13T12:17:47","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_dlist&#038;p=388"},"modified":"2020-06-01T07:07:20","modified_gmt":"2020-06-01T07:07:20","slug":"adding-widgets","status":"publish","type":"wpwax_dlist","link":"https:\/\/directorist.com\/documentation\/dlist\/customization\/adding-widgets\/","title":{"rendered":"Adding Widgets"},"content":{"rendered":"<h3>Using dList Widgets<\/h3>\n<p>dList provides a number of custom widgets for you to use. At the time of writing this doc, there are currently 14 custom directorist widgets available in the WordPress Widget page. Additional custom widgets may be added in future releases. However, if you add additional directorist add-ons then you may see more directorist custom widgets. For example, you will see a Business Hour widget if you install and use the Directorist Business Hour extension.\u00a0 You will see the directorist claim listing widget if you use the Directorist Claim Listing extension. The name of all directorist custom widgets is prefixed by the word \u2018Directorist\u2019 so that you can easily identify them.<\/p>\n<p>There are two types of custom directorist widgets are available. They are\u00a0<strong>Single Listing Specific Widge\u00a0<\/strong>and\u00a0<strong>Global Listing Widgets.<\/strong><\/p>\n<h3>Single Listing Specific Widgets<\/h3>\n<p>Some widgets are related to single listing and they are meant to be used in the single listing page only. Because they do not make sense if you use them anywhere except a single listing page. For example, the single author widget makes sense if we use it on the single listing page as the author&#8217;s information will change dynamically based on the current listing that a user seeing. The Single Listing specific widgets are generally used in the Directorist \u2013 Listing Right Sidebar area. But technically you can use them in any widget area\/sidebar. They won&#8217;t just display proper information if they are not used in the single listing page.<br \/>\nThe names of single listing specific widgets are given below.<\/p>\n<ol>\n<li><strong>Directorist \u2013 Author Info<\/strong>: It displays information about the current listing owner.<\/li>\n<li><strong>Directorist \u2013 Contact Listing Owner:<\/strong> it displays a contact form to contact the current listing owner.<\/li>\n<li><strong>Directorist \u2013 Map (Single Listing)<\/strong>: it displays the location of the current listing on a map.<\/li>\n<li><strong>Directorist \u2013 Similar Listings<\/strong>: it displays some listings similar to the current listing a user viewing<\/li>\n<li><strong>Directorist \u2013 Video<\/strong>: It displays the video of the current listing if it has one.<\/li>\n<\/ol>\n<h3>Global Listing Widgets<\/h3>\n<p>Widgets that are not single listing specific and can be used in any sidebars in WordPress are global widgets. Any widgets that are not listed above are a global widget and can be used anywhere including in the right sidebar of the single listing page. Example of a global widget is<\/p>\n<ol>\n<li><strong>Directorist \u2013 Categories<\/strong>: It displays all categories.<\/li>\n<li><strong>Directorist \u2013 Locations:<\/strong>\u00a0It displays all Locations.<\/li>\n<li><strong>Directorist \u2013 Tags:<\/strong>\u00a0It displays all Tags.<\/li>\n<li><strong>Directorist \u2013 Map<\/strong>: it displays all locations on a map.<\/li>\n<li><strong>Directorist \u2013 Featured Listings<\/strong>: it displays all featured listings<\/li>\n<li><strong>Directorist \u2013 Popular Listing<\/strong>: It displays all popular listings.<\/li>\n<li><strong>Directorist \u2013 Search Listing<\/strong>: It displays search listings form.<\/li>\n<li><strong>Directorist \u2013 Submit Listing:<\/strong> It displays the submit listing button.<\/li>\n<\/ol>\n<p>Visits\u00a0<strong>Dashboard \u2192 Appearance \u2192 Widgets<\/strong> page and drag any widget to a sidebar you like and visit your website. You should see the widget is displaying.<\/p>\n<figure id=\"attachment_3421\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-3421\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3421 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets.png\" alt=\"Using Directorist Widgets\" width=\"1810\" height=\"1548\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets.png\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-3421\" class=\"wp-caption-text\">Using Directorist Widgets<\/figcaption><\/figure>\n<figure id=\"attachment_3422\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-3422\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets-Frontend.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3422 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets-Frontend.jpg\" alt=\"Sample Directorist Widgets in the Frontend\" width=\"1020\" height=\"1825\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Directorist-Widgets-Frontend.jpg\" data-was-processed=\"true\" \/><\/a><\/figure>\n","protected":false},"author":2296,"parent":0,"menu_order":0,"template":"","class_list":["post-388","wpwax_dlist","type-wpwax_dlist","status-publish","hentry","wpwax_dlist_category-customization"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dlist\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dlist"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_dlist"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2296"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}