Support » Plugin: Simple Maps » The interactive map disappeared after upgraded to WordPress 4.0

Viewing 2 replies - 1 through 2 (of 2 total)
  • I find that it’s a problem with the theme selected as well. Anyway, the problem is solved by adding the javascripts into the header by updating the interactive-maps.php:

    add_action(‘wp_head’,’hook_javascript’);

    add_shortcode(‘simplemap’, ‘foobar_func’ );
    add_shortcode(‘simplemaps’, ‘foobar_func’ );

    function hook_javascript()
    {
    $mapdata_url = “/wp-content/uploads/2013/12/mapdata_”.ICL_LANGUAGE_CODE.”.js”;
    $mapfile_url = get_option(‘simplemaps_mapfile_url’);
    $output= ‘<script type=”text/javascript” src=”‘. $mapdata_url .'”></script><script type=”text/javascript” src=”‘.$mapfile_url.'”></script>’;
    echo $output;
    }

    Plugin Author simplemaps

    (@simplemaps)

    This was a theme-specific problem. Marked as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The interactive map disappeared after upgraded to WordPress 4.0’ is closed to new replies.