{"id":920,"date":"2025-03-24T14:28:02","date_gmt":"2025-03-24T14:28:02","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/geodirectory-frequently-asked-css-customizations\/"},"modified":"2025-04-03T15:24:22","modified_gmt":"2025-04-03T14:24:22","slug":"geodirectory-frequently-asked-css-customizations","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/geodirectory-frequently-asked-css-customizations\/","title":{"rendered":"GeoDirectory Frequently Asked CSS customizations"},"content":{"rendered":"\n<p>These CSS customizations need to be added to your website&#8217;s custom CSS. This can be done via Appearance > Customize > Custom CSS [unless your theme is taking advantage of FSE &#8211; full site editing]. Otherwise, you can add them to the style.css file of your child theme. One last alternative is to use a plugin that allows adding custom CSS such as\u00a0https:\/\/wordpress.org\/plugins\/simple-custom-css\/\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to hide the default category field from the add listing form<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">div.form-group&#091;data-argument=&quot;default_category&quot;&#093;{\n\tdisplay:none;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Hide the default category field only for the places custom post type<\/h4>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.geodir-form-gd_place div.form-group&#091;data-argument=&quot;default_category&quot;&#093;{\n\tdisplay:none;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Hide the default category field only for the events custom post type<\/h4>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.geodir-form-gd_event div.form-group&#091;data-argument=&quot;default_category&quot;&#093;{ \t\n\tdisplay:none; \n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Hide various types of near searches<\/h4>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">\/* Hide suggestions for IN search triggered by user input *\/\n\n.geodir-listing-search ul.gdlmls-neighbourhood,\n.geodir-listing-search ul.gdlmls-city,\n.geodir-listing-search ul.gdlmls-region,\n.geodir-listing-search ul.gdlmls-country {\ndisplay: none !important;\n}\n\n\/* Hide API Near suggestions *\/\n\n.geodir-listing-search ul.gdlmls-more{\ndisplay: none !important;\n\n\/* Hide automatic city suggestions that show when you click into the Near field *\/\n\n.geodir-listing-search .list-group-item-action&#091;data-type=&quot;city&quot;&#093; {\n    display: none !important;\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>These CSS customizations need to be added to your website&#8217;s custom CSS. This can be done via Appearance > Customize > Custom CSS [unless your theme is taking advantage of FSE &#8211; full site editing]. Otherwise, you can add them to the style.css file of your child theme. One last alternative is to use a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432,433],"class_list":["post-920","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/920","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=920"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/920\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=920"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=920"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}