{"id":934,"date":"2025-03-24T14:28:04","date_gmt":"2025-03-24T14:28:04","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-replace-business-hours-with-open-closed-on-gd-archives\/"},"modified":"2025-04-03T15:24:24","modified_gmt":"2025-04-03T14:24:24","slug":"how-to-replace-business-hours-with-open-closed-on-gd-archives","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/how-to-replace-business-hours-with-open-closed-on-gd-archives\/","title":{"rendered":"How to Replace Business Hours with &#8220;Open\/Closed&#8221; on GD Archives?"},"content":{"rendered":"\n<p>\n\tBy default, GeoDirectory shows the business hours of a listing on the archive pages. This is helpful in letting the users know about the operational hours of listings.&nbsp;<\/p>\n\n\n\n<p>\n\tHowever, you can replace the business hours with custom text, such as &#8220;Open&#8221; or &#8220;Closed&#8221;, depending on the actual business hours of listings. As such, when your users visit the archives listings page, they will see whether a given business is currently Open or Closed.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\nHow to Display Open or Closed on Listing Archives?&nbsp;<\/h2>\n\n\n\n<p>\n\tTo accomplish this, simply use the following CSS code:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.geodir-field-business_hours a {\ncursor: default;\npointer-events: none;\ntext-decoration:none;\n}\n\n.bsui .text-danger, .bsui .text-success {\ncolor: transparent !important;\n}\n\n.bsui .text-success font {\ncolor: #44c553 !important;\n}\n\n.bsui .text-danger font {\ncolor:#dc3545 !important;\n}\n\n.bsui .dropdown-toggle::after {\ndisplay: none;\n}<\/code><\/pre>\n\n\n\n<p><br>You can add the above snippet using the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin. Alternatively, since it&#8217;s CSS, you may also add it using the Advanced CSS section of the Theme Customizer, if you have the Jetpack plugin active.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\n\tOutput<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-HzZg29wJFm-1024x558.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, GeoDirectory shows the business hours of a listing on the archive pages. This is helpful in letting the users know about the operational hours of listings.&nbsp; However, you can replace the business hours with custom text, such as &#8220;Open&#8221; or &#8220;Closed&#8221;, depending on the actual business hours of listings. As such, when your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[790,791,792],"article\/categories":[211,433],"class_list":["post-934","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-restaurant-open","gd_place_tags-archive-listings","gd_place_tags-business-hours","gd_placecategory-tips-tricks-more","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/934","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"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=934"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/934\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=934"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=934"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}