Geo My WP conflict

This topic contains 4 replies, has 3 voices, and was last updated by  Paolo 8 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #63665

    Nael L
    Buyer
    Post count: 6

    Dear GeoDirectory team,

    I intend to develop a website using both GeoDirectory and Geo My WP… but just understood they were hardly compatible.
    I need to use Google Maps autocomplete from frontend (registration and profile pages) in order to get a map of members; however these GMW features stop working when GeoDirectory is activated.

    I opened a GMW ticket (https://geomywp.com/forums/topic/adding-address-on-registrationfrontend-not-working) until I found another user managed to have these plugins working together (http://stage.ptg.tarfoot.com/register/ http://stage.ptg.tarfoot.com/courses/) after you helped him find a solution (https://wpgeodirectory.com/support/topic/drop-down-menus).

    As the solution is not detailed, I wonder if you could explain how you managed to fix this. I can give you FTP/admin access to the website if needed but if there is just a few lines of code to add, I can try to do it myself.

    Thanks a lot for any help you could provide.

    Regards,

    Nael

    #63668

    Guust
    Moderator
    Post count: 29970

    I’ll alert Stiofan to your question.

    #63765

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    this is what Stiofan added to the Child Theme of the previous member using GMW:

    
    
    //fixes for geo my wordpress and GD
    remove_action('admin_enqueue_scripts', 'geodir_admin_scripts');
    remove_action('admin_enqueue_scripts', 'geodir_admin_styles');
    
    add_action('admin_enqueue_scripts', 'geodir_admin_scripts',7);
    add_action('admin_enqueue_scripts', 'geodir_admin_styles',7);
    
    remove_action('wp_enqueue_scripts', 'geodir_templates_scripts');
    remove_action('wp_enqueue_scripts', 'geodir_templates_styles', 8);
    
    add_action('wp_enqueue_scripts', 'geodir_templates_scripts',7);
    add_action('wp_enqueue_scripts', 'geodir_templates_styles', 7);
    
    function gd_kelo_dequeue_script() {
       wp_dequeue_script('geodirectory-googlemap-script');
    }
    add_action( 'wp_print_scripts', 'gd_kelo_dequeue_script', 100 );

    Hope this helps and will help others too.

    Let us know how you went,

    Thanks

    #64008

    Nael L
    Buyer
    Post count: 6

    Great!
    I need a few more days to check everything is OK but for now the problem seems to be solved.
    Thanks a lot for your help!

    #64078

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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