Viewing 4 replies - 1 through 4 (of 4 total)
  • I think you’re close…

    The page template has a Get_header() call. This pulls in the standard header.php from your template. This (probably) includes a <body> tag. As your page template includes its own <body> tag (with the script), this isn’t going to work.

    How about copying the contents of your header.php into your template, remove the get-header(), remove the extra <body> and try that?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    You also call get_header() twice in that template, which most definitely will not work.

    Probably your best bet is to eschew the get_header call entirely and copy the header in yourself. Not the best way to do things, but it would work for a one-shot deal.

    Thread Starter digitaltoast

    (@digitaltoast)

    Well, I’ve done all the above, spent a couple of weeks with a headache, going to give up and ask for help again!

    The embedded guestmap is showing in Firefox but not clickable, but not in IE at all, but is giving a javascript error “pdmarker is not defined”, and points me to this bit of code:

    var point0 = new GLatLng(53.33087298301704, -1.0546875);
    448 var marker0 = new PdMarker(point0, icon);

    You can see the problem at:
    https://www.horseriding-dunedin.co.nz/trek/guestbook/

    It would be a shame to abandon it altogether – perhaps someone more skilled than me could make a proper WordPress plugin out of it? Where would I suggest this kind of thing?

    Thread Starter digitaltoast

    (@digitaltoast)

    Well, it’s been 7 months. That developer has kind of given up on it and I’m looking for a decent Google Maps based guestmap, even if it can’t be embedded in WordPress.
    I don’t want to use an externally hosted on because they either disappear, or suddenly start flooding you with adverts!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embedding a javascript google guestmap: how to fire an onload’ is closed to new replies.