GeoDirectory SupportChange layout of Google info box – GeoDirectory Support https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/feed Fri, 14 Mar 2025 17:08:51 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8379 <![CDATA[Change layout of Google info box]]> https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8379 Mon, 14 Jul 2014 07:00:04 +0000 purpleedge I’m trying to replace the geodir_get_infowindow_html function to redesign the google pop-up window and I’m not having much luck.

If I copy it to my functions.php file it gets loaded AFTER the original declaration in post_functions.php.

Any way to do this?

]]>
https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8382 <![CDATA[Reply To: Change layout of Google info box]]> https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8382 Mon, 14 Jul 2014 07:44:50 +0000 purpleedge It’s OK I figured it out!

Create a plugin, add the function to the plugin and make sure it loads first…

http://wordpress.org/support/topic/how-to-change-plugins-load-order

]]>
https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8390 <![CDATA[Reply To: Change layout of Google info box]]> https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8390 Mon, 14 Jul 2014 10:34:41 +0000 Vikas Hi,

Here is better way.
Plz download attached zip, extract it and upload post_functions.php to godirectory > geodirectory-functions folder.

Then plz write this piece of code in ur theme functions.php


add_filter('geodir_custom_infowindow_html' , 'geodir_get_custom_infowindow_html', 10,3) ;
function geodir_get_custom_infowindow_html($html , $postinfo_obj, $post_preview = '')
{
	return 'Here u can copy content of geodir_get_infowindow_html function and can make necessary changes in html ';
}

Actually i have added a filter on that make that html alterable.

It will be included in next release too.

Thanks

]]>
https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8391 <![CDATA[Reply To: Change layout of Google info box]]> https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8391 Mon, 14 Jul 2014 10:35:25 +0000 Vikas Sorry forgot to attach zip.

]]>
https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8404 <![CDATA[Reply To: Change layout of Google info box]]> https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/#post-8404 Mon, 14 Jul 2014 13:48:44 +0000 purpleedge Thanks Vikas, that’s what I was hoping for 😉

]]>