{"id":2499,"date":"2026-10-20T08:34:09","date_gmt":"2026-10-20T07:34:09","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/change-open-now-closed-now-text\/"},"modified":"2026-10-20T08:39:20","modified_gmt":"2026-10-20T07:39:20","slug":"change-open-now-closed-now-text","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/translations\/change-open-now-closed-now-text\/","title":{"rendered":"How to change the Open now and Closed now text for business hours"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Open now and Closed now labels shown with GeoDirectory business hours are translatable text, so you change them like any other GeoDirectory wording: with a translation plugin or a short code snippet. The same strings are used on the page and in the live status that updates in the browser, so one change covers both.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">With a translation plugin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use a plugin such as Loco Translate (or Poedit on your computer) to edit the <code>geodirectory<\/code> text domain and enter your own wording for the strings you want to change. The business hours strings include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Open now<\/code><\/li>\n\n\n\n<li><code>Closed now<\/code><\/li>\n\n\n\n<li><code>Closed today<\/code><\/li>\n\n\n\n<li><code>Open 24 hours<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The step-by-step guide is in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/translations\/how-to-change-just-one-language-string\/\">How to change just one language string<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">With a code snippet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want to change one or two labels, add this to your child theme&#8217;s functions.php or to a snippets plugin. Change the text on the right to your own wording, and add more lines for other strings.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter( &#039;gettext&#039;, &#039;my_gd_business_hours_text&#039;, 20, 3 );\nfunction my_gd_business_hours_text( $translation, $text, $domain ) {\n\tif ( &#039;geodirectory&#039; !== $domain ) {\n\t\treturn $translation;\n\t}\n\n\t$new_text = array(\n\t\t&#039;Open now&#039;   =&gt; &#039;Service is live&#039;,\n\t\t&#039;Closed now&#039; =&gt; &#039;Service times&#039;,\n\t);\n\n\tif ( isset( $new_text&#091; $text &#093; ) ) {\n\t\treturn $new_text&#091; $text &#093;;\n\t}\n\n\treturn $translation;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Clear any page cache afterwards so the new wording shows to visitors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Open now and Closed now labels shown with GeoDirectory business hours are translatable text, so you change them like any other GeoDirectory wording: with a translation plugin or a short code snippet. The same strings are used on the page and in the live status that updates in the browser, so one change covers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,434],"class_list":["post-2499","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-translations"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2499","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=2499"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2499\/revisions"}],"predecessor-version":[{"id":2577,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2499\/revisions\/2577"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2499"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2499"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}