WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] 'Minify javascript' with WP-Minify breaks GoogleMap in single event (8 posts)

  1. rhodian
    Member
    Posted 1 year ago #

    Hi,

    I am using WP-minify and when I switch on the minify javascript option, the map on the single event page does not load the map.

    Does anyone know how to fix this issue?

    I've tried excluding the /wp-content/plugins/events-manager/includes/js/events-manager.js file but to no avail.

    Thanks

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

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    do you have a sample link for us to see and analyze? also, have you tried to temporarily switch back to default wp theme because I tried the plugin and seems to be working fine?

  3. rhodian
    Member
    Posted 1 year ago #

    Hi agelonwl,

    Thanks for the response, you can see what happens by visiting:
    http://fightsports-ondemand.tv/events/bf19/

    Javascript minification is currently switched on!

  4. agelonwl
    Member
    Posted 1 year ago #

    can I know if your theme header.php uses wp_head() and/or footer.php has wp_footer()?

  5. rhodian
    Member
    Posted 1 year ago #

    Hi again agelonwl,

    The answer is yes to both...
    header.php:
    <?php
    remove_action('wp_head', 'wp_generator');
    if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
    }
    wp_head();
    ?>

    footer.php:
    <div id="wp-footer">
    <?php wp_footer(); ?>
    </div>

  6. agelonwl
    Member
    Posted 1 year ago #

    just to narrow down the problem have you tried to temporarily switch back to default wp theme because I tried the plugin and seems to be working fine with me?

    e.g. try to temporarily use only EM, WP-Minify and wordpress default theme

  7. rhodian
    Member
    Posted 1 year ago #

    Looks like its a theme related issue... I changed the theme and it worked!

    How do I go about rectifying a theme problem (I've invested a lot of time and effort in this particular theme)?

  8. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    maybe you can check on how your theme loads jquery because it seems that it doesn't load default wp jquery library?

    e.g. http://msyk.es/blog/prevent-jquery-wordpress-theme/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic