{"id":2661,"date":"2026-10-20T08:35:25","date_gmt":"2026-10-20T07:35:25","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/add-a-logo-to-listings\/"},"modified":"2026-10-20T08:40:40","modified_gmt":"2026-10-20T07:40:40","slug":"add-a-logo-to-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/add-a-logo-to-listings\/","title":{"rendered":"How to add a logo to listings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory has a ready made Company Logo field. Add it to your post type, then show the logo on the listing page with the GD &gt; Post Images block or widget.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add the logo field<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Places &gt; Settings &gt; Custom Fields (use your own post type&#8217;s menu if it isn&#8217;t Places).<\/li>\n\n\n\n<li>Under Predefined Fields, click Company Logo.<\/li>\n\n\n\n<li>Check the labels, then save. Keep the field key as <code>logo<\/code>: GeoDirectory and some add-ons look for that key.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Listing owners can now upload a logo on the add listing form, and you can add one when editing a listing in the backend.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show the logo on the listing page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Uploading the logo stores it with the listing, but nothing displays it until you add it to a template. Edit your Details page template (the page set at GeoDirectory &gt; Settings &gt; General &gt; Pages) or your listing sidebar and add GD &gt; Post Images with Image types set to <code>logo<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_post_images types=&quot;logo&quot; type=&quot;image&quot; image_size=&quot;medium&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To show the logo on listing cards, add the same block to your Archive item template.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The logo is also a fallback image. When a listing has no photos, GD &gt; Post Images shows its logo by default, before the category or post type default image.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The logo shows but looks wrong<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the logo is there but cropped or squashed, it&#8217;s a styling issue. Try a larger image size such as <code>image_size=&quot;full&quot;<\/code>, or give the block an extra class and adjust it with CSS:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_post_images types=&quot;logo&quot; type=&quot;image&quot; css_class=&quot;gd-logo&quot;&#093;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.gd-logo img {\n    object-fit: contain;\n    max-height: 120px;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-images\/\">GD &gt; Post Images<\/a> for all the options, and <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> if the logo also appears on the map.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory has a ready made Company Logo field. Add it to your post type, then show the logo on the listing page with the GD &gt; Post Images block or widget. Add the logo field Listing owners can now upload a logo on the add listing form, and you can add one when editing a [&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-2661","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\/2661","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=2661"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2661\/revisions"}],"predecessor-version":[{"id":2805,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2661\/revisions\/2805"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2661"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2661"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}