{"id":606,"date":"2014-07-30T12:29:18","date_gmt":"2014-07-30T12:29:18","guid":{"rendered":"https:\/\/docs.wpgeodirectory.com\/?p=606"},"modified":"2016-01-03T00:23:58","modified_gmt":"2016-01-03T00:23:58","slug":"customizing-geodirectory-templates","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/customizing-geodirectory-templates\/","title":{"rendered":"Customizing GeoDirectory templates"},"content":{"rendered":"<p>Your GeoDirectory site uses a number of special templates to create your map pages, category pages, detail pages etc.<\/p>\n<p>You can find the default templates at <em><strong>\/wp-content\/plugins\/geodirectory\/geodirectory-templates.<\/strong><\/em><\/p>\n<p>We provide many hooks and filters that can provide lots of customization options without having to replace templates (this is the preferred way) but If you want to customize them in any way, just follow these steps:<\/p>\n<ol>\n<li>The default templates at <em><strong>\/wp-content\/plugins\/geodirectory\/geodirectory-templates<\/strong>.<\/em><\/li>\n<li>Navigate to your child theme.<\/li>\n<li>Create a folder in your active child theme folder called <em><strong>geodirectory.\u00a0<\/strong><\/em><\/li>\n<li>Find the template you want to customize.<\/li>\n<li>And copy that template to the <em><strong>geodirectory<\/strong><\/em>\u00a0folder in your active child theme.<\/li>\n<li>You can then change the original templates and insert any code needed to adapt the templates for your site or theme.<\/li>\n<li>By creating a copy of the template to your child theme, you will preserve all your changes when the plugin needs upgrading.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-21300\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/07\/template1.png\" alt=\"\" width=\"756\" height=\"444\" srcset=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/07\/template1.png 756w, https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/07\/template1-300x176.png 300w\" sizes=\"(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The two files\u00a0<strong>login_frm.php <\/strong>and\u00a0<strong>reg_frm.php\u00a0<\/strong>are called in the template\u00a0geodir-signup.php, you can replace this template but there are easier ways , adding the code below to your child theme functions.php will then allow you to replace those two files as the same way as all the others via the above method.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/Stiofan\/5da80705bd80758dd900.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your GeoDirectory site uses a number of special templates to create your map pages, category pages, detail pages etc. You can find the default templates at \/wp-content\/plugins\/geodirectory\/geodirectory-templates. We provide many hooks and filters that can provide lots of customization options without having to replace templates (this is the preferred way) but If you want to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wpgeodirectory.com\/docs\/customizing-geodirectory-templates\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Customizing GeoDirectory templates&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1676,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/606"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1676"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=606"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/606\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}