• Hi, i get the following error when inserting the shortcode either on the content or straight in the template with the do_shortcode function…

    do you have any idea ?
    thanks for your help.

    Notice: Undefined index: misc_javascript_header_footer in /home/httpd/vhosts/mysite/wp-content/plugins/leaflet-maps-marker/leaflet-maps-marker.php on line 607

    https://wordpress.org/plugins/leaflet-maps-marker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter numero7

    (@numero7)

    Edit ! i found that inserting the JS in header + inline solved my problem. But could you explain why it does not load correctyl when placed on footer ?
    thanks a lot.

    Hi,
    first please check if you are using the latest version (as with v3.10 on line 607 another code part is available).
    regarding header vs. footer: make sure your theme has the template tag <?php wp_footer(); ?> right before </body>-tag (usually in footer.php – see also https://codex.wordpress.org/Function_Reference/wp_footer fro reference) – if that template tag is not available in your theme, the default option to enqueue scripts in the header will not work.
    best,
    Robert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error notice on header’ is closed to new replies.