{"id":2742,"date":"2026-10-20T08:36:22","date_gmt":"2026-10-20T07:36:22","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-customize-the-map-popup\/"},"modified":"2026-10-20T08:39:00","modified_gmt":"2026-10-20T07:39:00","slug":"how-to-customize-the-map-popup","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-customize-the-map-popup\/","title":{"rendered":"How to customize the map popup (map bubble)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The popup that opens when a visitor clicks a marker on a GeoDirectory map is called the map bubble. You can choose which fields it shows from the field settings, restyle it with CSS, or change its layout with a template override.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choose which fields appear<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Places &gt; Settings &gt; Custom Fields.<\/li>\n\n\n\n<li>Open a field and, under &#8220;Show in extra output location&#8221;, tick Map bubble.<\/li>\n\n\n\n<li>Save the field and repeat for each field you want in the bubble.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The bubble always shows the listing title, an image, the rating and the favorite button. Fields you tick appear below those.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restyle it with CSS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The bubble is wrapped in the <code>.gd-bubble<\/code> class. Right-click inside an open bubble and choose Inspect to find the class of the part you want to change, then add your CSS in Appearance &gt; Customize &gt; Additional CSS. If logos look too big, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-map-styles\/how-to-fix-logo-size-issues-in-map-bubbles\/\">How to Fix Logo Size Issues in Map Bubbles?<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change the layout with a template override<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The bubble layout is a template made of GeoDirectory shortcodes, such as <code>&#091;gd_post_title&#093;<\/code>, <code>&#091;gd_post_images&#093;<\/code> and <code>&#091;gd_output_location location=&quot;mapbubble&quot;&#093;<\/code>. To change the order or add your own content:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy <code>wp-content\/plugins\/geodirectory\/templates\/bootstrap\/map\/map-popup.php<\/code>.<\/li>\n\n\n\n<li>Paste it into your child theme as <code>wp-content\/themes\/your-child-theme\/geodirectory\/bootstrap\/map\/map-popup.php<\/code>.<\/li>\n\n\n\n<li>Edit the copy. You can move, remove or add GeoDirectory shortcodes.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Use a child theme, so a theme update doesn&#8217;t remove your copy. If the site uses the legacy (non-Bootstrap) design style, the file is <code>templates\/map-popup.php<\/code> and the copy goes in <code>your-child-theme\/geodirectory\/map-popup.php<\/code>. More in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/customizing-templates\/\">Customizing templates<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Images in search results and listing cards<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Images on listing cards in archive and search results come from the Archive item template, not the map bubble. Edit the page set as Archive item page in GeoDirectory &gt; Settings &gt; General &gt; Pages and place a GD &gt; Post Images block where you want the image.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The popup that opens when a visitor clicks a marker on a GeoDirectory map is called the map bubble. You can choose which fields it shows from the field settings, restyle it with CSS, or change its layout with a template override. Choose which fields appear The bubble always shows the listing title, an image, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2742","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2742","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=2742"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2742\/revisions"}],"predecessor-version":[{"id":2852,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2742\/revisions\/2852"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2742"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2742"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}