Need one more help on the geosearch code, if possible. I am receiving this following error after I followed your procedure from the link above:
Fatal error: Cannot redeclare leafext_enqueue_geosearch() (previously declared in /home/bariscop/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(268) : eval()’d code:2) in?/home/bariscop/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(268) : eval()’d code?on line?1
I have placed the geosearch.umd.js and geosearch.css in the upload directory, public_html/wp-content/uploads/geosearch. Then I installed WPcode, added a PHP snippet with your code and named the snippet geosearch, activated it, and used it as a shortcode under leaflet map, as such:
[leaflet-map height=1000 width=1500 scrollwheel=true doubleClickzoom=true]
[wpcode id=”195″]
Do you know what needs to be changed to mitigate the error? Thank you so much!