Thank you for the prompt reply.
This is the demo site for The Events Calendar (which I’ll shorten to TEC), a single event page as is the one I am trying to print properly: https://wpshindig.com/event/womens-javascript-study-group/2016-09-07/
The injection (insert HTML options in the settings page) is what I was referring to as a test. The test didn’t work (I presume because the top HTML doesn’t get put into the <head>) but I only did it to try and isolate which script(s) needed to be included. Doing an injection I don’t think is the answer, because the marker is different on most single event pages, and is automatically generated. If we were to inject something, it would first have to hook into TEC to generate the right data. That’s why I suggested excluding rather than including – so instead of trimming the header/footer JS, we could just pass along any that matched a certain regex.
As I was unable to verify with the test which script exactly was responsible for the marker, my best guess is one/some of the following, which are taken from the sample page I linked to.
In the header:
<script type='text/javascript' src='https://wpshindig.com/content/plugins/events/src/resources/js/tribe-events.min.js?ver=4.2.2'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var TribeEventsPro = {"geocenter":{"max_lat":52.371969,"max_lng":151.188382,"min_lat":-33.891467,"min_lng":-122.65644},"map_tooltip_event":"Event: ","map_tooltip_address":"Address: "};
/* ]]> */
</script>
<script type='text/javascript' src='https://wpshindig.com/content/plugins/events-calendar-pro/src/resources/js/tribe-events-pro.min.js?ver=4.2.1'></script>
Footer:
<script type='text/javascript' src='https://maps.google.com/maps/api/js?ver=4.5.2'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var tribeEventsSingleMap = {"addresses":[{"address":"989 Market St San Francisco CA United States ","title":"Zoosk"}],"zoom":"15"};
var tribeEventsSingleMap = {"addresses":[{"address":"989 Market St San Francisco CA United States ","title":"Zoosk","coords":["37.7823418","-122.4095812"]}],"zoom":"15"};
/* ]]> */
</script>
<script type='text/javascript' src='https://wpshindig.com/content/plugins/events/src/resources/js/embedded-map.min.js?ver=4.5.2'></script>
-
This reply was modified 8 years, 2 months ago by specksy.