{"id":2744,"date":"2026-10-20T08:36:22","date_gmt":"2026-10-20T07:36:22","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-show-the-listing-logo-on-the-details-page\/"},"modified":"2026-10-20T08:39:00","modified_gmt":"2026-10-20T07:39:00","slug":"how-to-show-the-listing-logo-on-the-details-page","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-show-the-listing-logo-on-the-details-page\/","title":{"rendered":"How to show the listing logo on the details page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory has a Company Logo field with the key <code>logo<\/code>. Add it to your post type so listing owners can upload a logo, then place the logo on the details page with GD &gt; Post Images or GD &gt; Post Meta.<\/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.<\/li>\n\n\n\n<li>Find Company Logo in the list of fields you can add, and add it.<\/li>\n\n\n\n<li>Save. Users now see a logo upload on the add listing form.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Keep the key as <code>logo<\/code>. Other GeoDirectory widgets and add-ons look for that key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show the logo on the details page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the Details Page template (GeoDirectory &gt; Settings &gt; General &gt; Pages, Details Page) and add one of these where you want the logo.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GD &gt; Post Images with Image types set to <code>logo<\/code> and Output Type set to Single image. Set Aspect ratio to &#8220;No ratio (natural)&#8221; so the logo isn&#8217;t cropped to 16:9, and pick a smaller Image size so a large upload doesn&#8217;t fill the column. As a shortcode:<\/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; aspect=&quot;n&quot; image_size=&quot;medium&quot; css_class=&quot;gd-listing-logo&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or GD &gt; Post Meta with the key <code>logo<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_post_meta key=&quot;logo&quot; show=&quot;value&quot;&#093;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Control the logo size<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The image stretches to fill its container. To keep it small, give the block an extra class (as with <code>gd-listing-logo<\/code> above) and add CSS in Appearance &gt; Customize &gt; Additional CSS:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.gd-listing-logo img {\n\twidth: auto;\n\tmax-width: 150px;\n\theight: auto;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To place the logo beside the title, put the Post Images and Post Title blocks in a columns block in the template. GD &gt; Post Images also uses the logo as the first fallback when a listing has no photos. Full options: <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-images\/\">GD &gt; Post Images<\/a> and <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-meta\/\">GD &gt; Post Meta<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory has a Company Logo field with the key logo. Add it to your post type so listing owners can upload a logo, then place the logo on the details page with GD &gt; Post Images or GD &gt; Post Meta. Add the logo field Keep the key as logo. Other GeoDirectory widgets and add-ons [&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-2744","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\/2744","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=2744"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2744\/revisions"}],"predecessor-version":[{"id":2854,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2744\/revisions\/2854"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2744"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2744"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}