WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Delivery By Post/Zipcode › Support › Post/Zip code call map popup
- AuthorPosts
- 29 May, 2017 at 6:05 pm #28032
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 Richard29 May, 2017 at 6:45 pm #28033you 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 showsyou 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
29 May, 2017 at 6:47 pm #28034ah this issue, ok had it before…thanks…
29 May, 2017 at 6:50 pm #28035or is there a way to call the map popup anyway else?
29 May, 2017 at 6:53 pm #28036it 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)
29 May, 2017 at 6:55 pm #28037I want to open the popup on the frontpage, because this is a multisite setup with 22 stores and redirects.
29 May, 2017 at 7:01 pm #28038ok, 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 ?!
29 May, 2017 at 7:26 pm #28039or 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….
- AuthorPosts
- The topic ‘Post/Zip code call map popup’ is closed to new replies.