In that case, the theme seems to be the problem. I switched to twenty-nineteen and the map now shows up, no file editing needed.
I am seeing how I can make it work in costum-community since that is the theme I am using.
Ah, well at least we finally found the problem… π
I have installed the Custom Community theme on my localhost and guess what? It completely screws up my map as well. Let me se if I can find the problem in the theme.
I contacted the author of the theme. Waiting on a reply.
It seems the theme is doing something to the_content(). So for now, you could do this little work-around.
In themes/custom-community/content-single.php, go to line 52 and change:
<?php the_content(); ?>
to:
<?php
if(is_singular('event')) {
global $EM_Event;
$content = get_option('dbem_single_event_format');
echo $EM_Event->output( $content );
} else {
the_content();
}
?>
That will bypass all other filters, except for the Events Manager output. The if statement will only make sure normal pages are left alone. π
Oh… and to get rid of the errors caused by Google Fonts, change three lines in the theme’s functions.php.
Lines 234, 238 and 241, change http:// to https:// π
Omg! You are amaizing!
Works exactly as it should now π
*blush* !!! π
Thanks. I’m just glad we got it working π
Be sure to check other EM generated pages as well. It seems the theme doesn’t handle the EM_Event Object very well.
I think there’s only the location page that also has maps on it, but I’m not really using it so (to me) it’s not that important that it works π
I’ll see if cc ever updates there code to make it work, but for now this is perfect for me π
On my localhost it did not process the single event layout at all, only what was in the content section of the Edit Event page. So it might be that you will need to check it anyway.
If you run into anything. you know where to find me π
This is the reply I just received from the theme author:
Thank you for reaching out to us!
I apologize for the inconvenience, but unfortunately, Custom Community is no longer part of Macho Themes’ repository for a couple of years now. We no longer support or update it, I’m sorry.
However, we appreciate the feedback, thank you.
So, All I could do was reply that they should delete the theme from the WP repository then.