Gerry_C
Forum Replies Created
-
Forum: Plugins
In reply to: [Groups] Deprecated: Unparenthesized… error messageThanks @evdheuvel and @neejoh.
I just got caught in the issue with a new server today and your fixes worked. This is months old and there’s no updates.
@proaktion Is this plug-in still supported?
Gerry
@pasamike
This will require a bit of custom PHP coding as there are no conditional placeholders for custom attributes as standard.Something based on the following thread will need to be added to eg your child theme functions.php. If you don’t have a child theme, there’s a bit of learning to do before you get to this.
Conditional place holder for custom attribute
The first coded answer should do as you want.As always, it is best to test this on a staging site as it’s easy to break your site if you make a small mistake. Make a full backup first as well.
Gerry
I did answer a post in the Pro forum about this. It is the events-manager.css file from the plugin that contains these amendments. This appears to be incompatible with the map update from Google.
Updates were made by Support on other posts with the same problem the next day saying the devs were aware (though there is no update to my post from 2 weeks ago).
For now, I’ve commented out these lines hoping that they will be removed in the next update.Gerry (another EM user)
Hi danbru
You need to set an actual height for the map on the single event page (eg 400px instead of 100%).
The reason it works on your Updates page is that the other columns set the height of that section so it uses all of the available height. At present on your event page, it is 100% of 0 as there’s no content there apart from the map.
Gerry
Another customer, not support.I see what you mean. This is happening because the calendar uses ‘rowspan’ to fill out the cells. Your theme though sets alternative rows to different colors which works well in more regular tables.
Add the following custom CSS to make them all the same in the calendar.
.wpfc-calendar tr:nth-child(2), .wpfc-calendar tr:nth-child(2n+1) { background-color: #f8f8f8; }Gerry
Hi
Another customer here, not support.This is how I made the map responsive on our site. Note that you may need to make changes as your theme is likely to be different.
In the settings, use “Default map width”:360px and “height”:280px (or whatever looks good on your site when using a wide desktop browser).
In “Single event page format” and “Single location page format” use the following to show the map before other details on the page:
<div class="child-event-map">#_LOCATIONMAP</div>In your child theme CSS or other plugin that lets you show custom CSS, add:
.child-event-map { float:right; margin: 0 0 15px 15px; } @media screen and (max-width: 920px) { .child-event-map { float: none; margin-left: 0; } .em-location-map-container { width: 98% !important; } }This will override the inline 360px width that EM sets from the settings. It also puts an extra div around the map that changes float setting here. You can change the 920px to whatever value you want to make the map responsive at.
Gerry
PS Rob, your link comes back to this topic.
You could use Conditional placeholders to decide whether to have a link or not.
Depending on how you run your bookings, you could just have the link on bookable events or if a particular category or tag is set. An idea to show links when bookings are enabled for an event is:
{has_bookings}#_EVENTLINK{/has_bookings}{no_bookings}#_EVENTNAME{/no_bookings}