{"id":1021,"date":"2025-03-24T14:28:17","date_gmt":"2025-03-24T14:28:17","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/fix-geodir-modal-z-index-overwritten-by-other-plugin-in-admin\/"},"modified":"2025-04-03T15:24:39","modified_gmt":"2025-04-03T14:24:39","slug":"fix-geodir-modal-z-index-overwritten-by-other-plugin-in-admin","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/fix-geodir-modal-z-index-overwritten-by-other-plugin-in-admin\/","title":{"rendered":"Fix GeoDir modal z-index overwritten by other plugin in admin"},"content":{"rendered":"\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_action( &#039;admin_footer&#039;, &#039;gdsnippet_fix_modal_css_conflict_admin&#039;, 99, 0 );\nfunction gdsnippet_fix_modal_css_conflict_admin() {\n    global $current_screen;\n    $geo_cpts = geodir_get_posttypes();\n    if ( ! empty( $current_screen-&gt;post_type ) &amp;&amp; in_array( $current_screen-&gt;post_type, $geo_cpts ) ) {\n        echo &#039;&lt;style&gt;body.modal-open .aui-modal{opacity: 1;visibility: visible;z-index: 1055;}&lt;\/style&gt;&#039;;\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,433],"class_list":["post-1021","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/1021","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=1021"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/1021\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=1021"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}