WordPress.org

Ready to get started?Download WordPress

Forums

Dreamgrow Scroll Triggered Box
plugin conflict with Leaflet Maps Marker (1 post)

  1. RobertHarm
    Member
    Posted 12 months ago #

    Hi,

    I am the developer of Leaflet Maps Marker (www.mapsmarker.com) and your plugin is causing my settings page to break :-/

    This is due to the fact that you enqueue your js scripts on all admin pages instead of only on your pages.

    To be more precise: file stb_admin.php
    wp_enqueue_style('jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/base/jquery-ui.css');
    is causing my settings page to break.

    Within my plugin I do this to only load scripts and css on my admin pages:

    [...]
    $page = add_submenu_page('leafletmapsmarker_markers', 'Maps Marker - ' . __('Tools', 'lmm'), '<hr noshade size="1"/>' . '<img src="' . LEAFLET_PLUGIN_URL . 'inc/img/icon-menu-tools.png"> ' . __('Tools', 'lmm'), 'activate_plugins','leafletmapsmarker_tools', array(&$this, 'lmm_tools') );
    [...]
    add_action('admin_print_styles-'.$page, array(&$this, 'lmm_admin_enqueue_stylesheets'));

    If would be great if you could also add this to your plugin. In the meantime I will show a warning to my plugin users that your plugin is breaking my settings page within my built-in compatibility check.
    best,

    Robert

    http://wordpress.org/plugins/dreamgrow-scroll-triggered-box/

Reply

You must log in to post.

About this Plugin

About this Topic