Change layout of Google info box

This topic contains 4 replies, has 2 voices, and was last updated by  purpleedge 9 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #8379

    purpleedge
    Expired Member
    Post count: 539

    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?

    #8382

    purpleedge
    Expired Member
    Post count: 539

    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

    #8390

    Vikas
    Full Member
    Post count: 1128

    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

    #8391

    Vikas
    Full Member
    Post count: 1128

    Sorry forgot to attach zip.

    #8404

    purpleedge
    Expired Member
    Post count: 539

    Thanks Vikas, that’s what I was hoping for 😉

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket