Post/Zip code call map popup

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28032
    richardmccutchan
    Participant

      Hey Olly,
      is it possible to call the popup with an URL from the frontpage for example. I tried it with Pop Builder but the map is empty:
      http://pizzadewl2.wpengine.com/
      pls click in the middle on “Postleitzahl finden”
      here it works fine: http://pizzadewl2.wpengine.com/online-bestellen/neu-bei-mama/
      Cheers Richard

      #28033
      Olly
      Admin & Mod

        you are using something that hijacks the normal wp thickbox.
        you have to re-initialize the map once the container has been opened (check the google codex re maps) or it has no idea what size it needs to be and the width/height is 0 – hence nothing shows

        you will see what i mean when you open the container/map and simply resize the browser. it will now show up as the container div has a specified/known width / height when it’s opened

        #28034
        richardmccutchan
        Participant

          ah this issue, ok had it before…thanks…

          #28035
          richardmccutchan
          Participant

            or is there a way to call the map popup anyway else?

            #28036
            Olly
            Admin & Mod

              it already opens by itself when used ?!
              (as you can see here http://pizzadewl2.wpengine.com/online-bestellen/neu-bei-mama/)

              but – as i said – your non-working site uses something that hijacks the WP thickbox (or is customised that way – i cannot know)

              #28037
              richardmccutchan
              Participant

                I want to open the popup on the frontpage, because this is a multisite setup with 22 stores and redirects.

                #28038
                Olly
                Admin & Mod

                  ok, but what does that have to do with something hijacking the core WP thickbox though ?

                  more importantly if you want to use the redirect thing you want to have it opened anyway without having to click on a button first, don’t you ? (which is the default behaviour)

                  not sure where the issue is or why the behaviour it already has needs to be modified ?!

                  #28039
                  Olly
                  Admin & Mod

                    or simply try something like this on click and after load

                    https://stackoverflow.com/questions/8558226/recenter-a-google-map-after-container-changed-width

                    no idea if this works and will most likely need some tweaking but might be a starting point if you really want to do the popup on click with a different type of thickbox….

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘Post/Zip code call map popup’ is closed to new replies.