Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @_brake_,

    No need for the Nearby Locations extension.

    Try the script below by adding it to the functions.php file of your theme:

    
    function gmw_custom_enable_info_window_featured_image( $gmw ) {
    
    	$gmw['info_window']['image']['enabled'] = true;
    
    	return $gmw;
    }
    add_filter( 'gmw_pt_default_form_values', 'gmw_custom_enable_info_window_featured_image' );
    

    Let me know if this helps.

    Hi I tried this and the pin changed to one with an image, but it always says no image found, even though there is a featured image.

    <img class="gmw-image" src="https://www.sidecarphoto.co/wp-content/plugins/geo-my-wp/assets/images/no-image.jpg" width=" 360" height=" 280">

    Any ideas why?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show featured image when pin is clicked’ is closed to new replies.