• Resolved neoset

    (@neoset)


    I need to disable the WP Google Map Plugin for the page:
    https://www.wpmapspro.com/
    It appears in the list to be able to deactivate the blocking of cookies but it does not work, plugins such as google maps or youtube work fine but it is not deactivated.
    The reason for the deactivation is because if I put the map on the cover, a blank space is seen and that gives a bad appearance.

    Greetings and thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @neoset,

    Complianz supports the standard Maps integration and several plugins that offer this. I see that there isn’t any integration with this specific plugin yet.

    Could you perhaps give me the URL regarding this? Then we could take a look if we can solve it from the front-end.

    Please let me know, I am happy to help.

    Kind regards, Kim van Dijk

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @neoset,

    Do you have an example we can look at?

    Disabling any integrations under Complianz – Integrations related to Google Maps should work. I don’t know by heart if we have an integration for this specific plugin.

    regards Aert

    Thread Starter neoset

    (@neoset)

    After several tests and deactivating the plugins one by one, I have discovered that the code that causes the disappearance of the Wp google maps map (it has integration since the Complianz plugin indicates it to me) combined with the Complianz plugin is the creation of this CPT:

    function cptui_register_my_cpts_aviso() {
    
    	/**
    	 * Post Type: Avisos.
    	 */
    
    	$labels = [
    		"name" => __( "Avisos", "hello-elementor" ),
    		"singular_name" => __( "Aviso", "hello-elementor" ),
    		"menu_name" => __( "Mi Avisos", "hello-elementor" ),
    		"all_items" => __( "Todos los Avisos", "hello-elementor" ),
    		"add_new" => __( "A?adir nuevo", "hello-elementor" ),
    		"add_new_item" => __( "A?adir nuevo Aviso", "hello-elementor" ),
    		"edit_item" => __( "Editar Aviso", "hello-elementor" ),
    		"new_item" => __( "Nuevo Aviso", "hello-elementor" ),
    		"view_item" => __( "Ver Aviso", "hello-elementor" ),
    		"view_items" => __( "Ver Avisos", "hello-elementor" ),
    		"search_items" => __( "Buscar Avisos", "hello-elementor" ),
    		"not_found" => __( "No se ha encontrado Avisos", "hello-elementor" ),
    		"not_found_in_trash" => __( "No se han encontrado Avisos en la papelera", "hello-elementor" ),
    		"parent" => __( "Aviso superior", "hello-elementor" ),
    		"featured_image" => __( "Imagen destacada para Aviso", "hello-elementor" ),
    		"set_featured_image" => __( "Establece una imagen destacada para Aviso", "hello-elementor" ),
    		"remove_featured_image" => __( "Eliminar la imagen destacada de Aviso", "hello-elementor" ),
    		"use_featured_image" => __( "Usar como imagen destacada de Aviso", "hello-elementor" ),
    		"archives" => __( "Archivos de Aviso", "hello-elementor" ),
    		"insert_into_item" => __( "Insertar en Aviso", "hello-elementor" ),
    		"uploaded_to_this_item" => __( "Subir a Aviso", "hello-elementor" ),
    		"filter_items_list" => __( "Filtrar la lista de Avisos", "hello-elementor" ),
    		"items_list_navigation" => __( "Navegación de la lista de Avisos", "hello-elementor" ),
    		"items_list" => __( "Lista de Avisos", "hello-elementor" ),
    		"attributes" => __( "Atributos de Avisos", "hello-elementor" ),
    		"name_admin_bar" => __( "Aviso", "hello-elementor" ),
    		"item_published" => __( "Aviso publicado", "hello-elementor" ),
    		"item_published_privately" => __( "Aviso publicado como privado.", "hello-elementor" ),
    		"item_reverted_to_draft" => __( "Aviso devuelto a borrador.", "hello-elementor" ),
    		"item_scheduled" => __( "Aviso programado", "hello-elementor" ),
    		"item_updated" => __( "Aviso actualizado.", "hello-elementor" ),
    		"parent_item_colon" => __( "Aviso superior", "hello-elementor" ),
    	];
    
    	$args = [
    		"label" => __( "Avisos", "hello-elementor" ),
    		"labels" => $labels,
    		"description" => "",
    		"public" => true,
    		"publicly_queryable" => true,
    		"show_ui" => true,
    		"show_in_rest" => true,
    		"rest_base" => "",
    		"rest_controller_class" => "WP_REST_Posts_Controller",
    		"rest_namespace" => "wp/v2",
    		"has_archive" => false,
    		"show_in_menu" => true,
    		"show_in_nav_menus" => true,
    		"delete_with_user" => false,
    		"exclude_from_search" => false,
    		"capability_type" => "post",
    		"map_meta_cap" => true,
    		"hierarchical" => false,
    		"can_export" => false,
    		"rewrite" => [ "slug" => "aviso", "with_front" => true ],
    		"query_var" => true,
    		"menu_icon" => "dashicons-megaphone",
    		"supports" => [ "title", "editor", "thumbnail", "author" ],
    		"show_in_graphql" => false,
    	];
    
    	register_post_type( "aviso", $args );
    }
    
    add_action( 'init', 'cptui_register_my_cpts_aviso' );

    There is something in this code that makes the integration not work, if I delete it it works perfectly and disables the blocking of the map as I want but if I add this code to the Code snippets, it makes the map disappear when I block the cookies and that’s it that I don’t want, that even if I block them, they don’t disappear.
    In short, in this code there is something that makes the integration to deactivate the blocking of the Wp google maps map not work.

    Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    @neoset It is correct that Complianz blocks the Google Map. However, most Google Maps implementations require a specific integration from our end (or the other way around) to unblock scripts in the right order because of script dependencies.

    I see that this is a paid plugin. Please could you provide an URL of a page with Complianz and the WP Maps Pro plugin, so we can investigate from the frontend?

    You could also reach out to the plugin developers and ask them to integrate using this guide: https://complianz.io/developers-guide-for-third-party-integrations/

    Thank you in advance.

    Regards,
    Leon

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @neoset,

    To stop Complianz from blocking this Google Map and fully restore it’s functionality, it should suffice to disable both the Google Maps integration (Complianz > Integrations > Services) and the integration with the WP Google Map plugin (Complianz > Integrations > Plugins).

    The current blank space after consent likely occurs because the WP Google Map Pro plugin has a dependent script that is not currently blocked, therefore it is already loading before the other scripts, and the script returns an error and can’t load correctly.

    Perhaps you could share an URL to a page containing the Map, so we can see what error it returns?

    Kind regards,
    Jarno

    Thread Starter neoset

    (@neoset)

    I’m going to do some tests with a clean wordpress, it may be some error of another plugin.
    I have done a quick test and the error has not been replicated and the integration works perfectly, even so I will test the plugin thoroughly and tell you.
    Thank you very much for your time.

    Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    @neoset That’s good to hear. Please feel free to share the results or to open a new thread if you run into any further issues.

    Regards,
    Leon

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable WP Google Map Plugin Blocking’ is closed to new replies.