Forums

[Plugin: Events Manager] pagemash conflicts (2 posts)

  1. MACscr
    Member
    Posted 2 years ago #

    Want to start off by saying thanks for creating this extremely robust and useful plugin.

    I am using the newest version of Events Manager (2.0.2rc2 i think) at the time of this post. Unfortunately the plugin for some odd reason loads its ridiculously large amount of js in every single admin page of wp. What can be done to get this plugin setup so that it only loads the js/css for the events module on the pages that actually use it? That way it doesnt conflict with other modules, like PageMash.

    Thanks,
    Mark

    http://wordpress.org/extend/plugins/events-manager/

  2. MACscr
    Member
    Posted 2 years ago #

    This is kind of dirty, but so far it appears to work and you dont have to edit any plugin code to get it to work,hence dont have to worry about it being overwritten. I added the following to my themes functions.php file:

    remove_action ( 'admin_head', 'dbem_admin_general_script' );
    $event_pages = array('people','events-manager/events-manager.php','new_event','locations','events-manager-options','events-manager-categories');
    if (in_array($_GET['page'],$event_pages)) {
    	add_action ( 'admin_head', 'dbem_admin_general_script' );
    }

Topic Closed

This topic has been closed to new replies.

About this Topic