slewisma
Forum Replies Created
-
Thanks Angelo, I got the 5.6.5 update on a site yesterday and was pleased to see the new setting that fixes this issue. It is working properly on 2 new sites and one that was grandfathered by Google since it was running before 22 June.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Google Maps errorSame problem here on a new site on a shared hosting server that hosts other sites that are working. Can’t seem to get around it even by adding the key to the EM script that loads the Maps library. Happens in public pages and admin.
Turns out you can use a display type of table-cell without being in a table which then allows vertical-align since table-cell is an inline element. This actually seems to work pretty well as an isolated test:
<div style="height:200px;width:200px;border:2px solid black;"> <div style="height:200px; display:table-cell; vertical-align:middle;"> Hello, I'm a long-ish line that will likely wrap to another line when it reaches the edge of the box. </div> </div>I tried editing the megamenu.scss to test this concept in mega menu. It did center things but without making more changes to the walker and the css I couldn’t fully test how viable it is since making the li’s into table-cells requires wrapping them in something else that is a block for the menu to still work right. Not sure when I’ll have time to dig in that deep but wanted to offer this example in case you can use it since you’re much more familiar than I am with mega menu’s intricacies.
There are several ways to vertically align and not all depend on line height but there are tradeoffs with each. A decent summary: http://vanseodesign.com/css/vertical-centering/
I’m not sure any of these works well enough when you can’t predict if the text will wrap to be worth the tradeoffs and complexity but I’ll try some experiments and see what I can learn. If I find something that works well I’ll let you know.