No maps in custom template

Home Forums Calendar Products Events Calendar PRO No maps in custom template

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1001433
    Massimo
    Participant

    As per subject, I cannot display maps. The settings are correct and I’ve been through the checklist for conflicts from https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    The maps do show up in the default Twentythirteen template (which is the parent of mine), and disabling the plugins doesn’t make a difference. There are also no conflict in the console, as can be seen here: http://deco.graph-iq.co.uk/concerts/another-concert/

    Instead of the map I get the following HTML:

    <div id="tribe-events-gmap-0" style="height: 350px; width: 100%"></div>

    I’m curious to know what I’m missing …

    #1001650
    Geoff
    Member

    Howdy Massimo and welcome to the forums!

    First off, nice site. It’s super clean and both the illustrations and typography really go well with orchestras. Awesome job!

    I see what you mean with the map on an event post. It’s just a gray box where the map should be and there are no relevant console errors that I see.

    If I’m understanding the issue, then you are using a template override for the single-event.php template. Is that correct? It’s strange, but I couldn’t find a custom template for it on your site when looking for it–it seems like you are using the default template, at least in the child theme directory.

    The maps do show up in the default Twentythirteen template

    This is the key piece of information, one way or another. We should try to narrow the conflict down a bit further here to see what we find:

    • Make a backup of the tribe-events folder in your child theme directory and then temporarily remove the folder. Does that make a difference?
    • Are there any custom functions in your child theme’s functions.php file? I would try making a backup of that and temporarily removing it like we did in the last step to see if that changes anything.
    • Does your child theme have any other scripts, files or templates that could be affecting things? A good thing to look for is any specific file in the child theme that directly overrides or is different from the parent.

    And, one more thing to check: are you using the Default Event Template in your Events > Settings > Display options? If not, please switch to that and see if that changes anything.

    Let’s start here and see what we find.

    Thanks!
    Geoff

     

    #1003616
    Massimo
    Participant

    > Thanks for you reply and the compliments! In response to the points
    > you
    > raised:
    >
    > – there is no template override for single-event.php. In fact, there’s
    > only a tribe-events.css in the tribe-events/ folder of the child theme
    >
    > – removing the tribe-events/ folder from the child theme doesn’t make
    > any difference
    >
    > – there are no custom functions in functions.php
    >
    > – there is nothing tribe-related in the .php files of the child theme
    >
    > – I’m using the Default Event Template in Events > Settings > Display
    > Options
    >

    I hope you can suggest something else

    Thanks

    Massimo

    #1003709
    Geoff
    Member

    Thanks for following up, Massimo!

    It looks like the map is displaying in the current conditions (Twenty Thirteen theme):

    http://deco.graph-iq.co.uk/concerts/another-concert/

    Do you see the same thing?

    If so, that’s a great start because it tells us that we’re looking at a theme conflict and can start narrowing it from there.

    Thanks for hanging in here with me while we work on this together. 🙂

    Geoff

    #1008661
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘No maps in custom template’ is closed to new replies.