Title: Making logo clickable
Last modified: August 30, 2016

---

# Making logo clickable

 *  [Mike](https://wordpress.org/support/users/thewordpressdude/)
 * (@thewordpressdude)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/making-logo-clickable-1/)
 * I added the company logos to [the site am building](http://momdoc.dynamicwebshop.com/)
   by assigning it to the Featured Image. Now it displays in the listings boxes 
   as I expected. However, I don’t see how to make it clickable to take them to 
   the associated website. WooCommerce utilizes this feature to allow a user to 
   click on the product’s Featured Image, and they are then taken to that product’s
   info page. Could a field be added for the link to an external page?
    Thanks, 
   Mike
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/making-logo-clickable-1/#post-6690652)
 * If you can use the url field for the product info page, then you can access it
   in the listing template [filter](http://wpstorelocator.co/document/wpsl_listing_template/)
   under ‘url’.
 * In this code example you can replace the line that contains _<%= thumb %>_ with
   this code, and it will wrap a link around the thumbnail.
 *     ```
       $listing_template .= "\t\t\t" . '<p><a href="<%= url %>"><%= thumb %></a>' . "\r\n";
       ```
   
 * If a url doens’t always exist, then this code is better.
 *     ```
       <% if ( url ) { %>
       $listing_template .= "\t\t\t" . '<p><a href="<%= url %>"><%= thumb %></a>' . "\r\n";
       } else {
       $listing_template .= "\t\t\t" . '<p><%= thumb %>' . "\r\n";
       }
       ```
   
 * If you want to add a custom field, then [this](http://wpstorelocator.co/document/add-custom-meta-data-to-store-locations/)
   article should help you get started. It shows you how to add a [new field](http://wpstorelocator.co/document/add-custom-meta-data-to-store-locations/)
   to the meta boxes, include the data in the json response, and use it on the front-
   end.

Viewing 1 replies (of 1 total)

The topic ‘Making logo clickable’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

 * [featured image link](https://wordpress.org/support/topic-tag/featured-image-link/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/making-logo-clickable-1/#post-6690652)
 * Status: not resolved