• Resolved pracko

    (@pracko)


    From time to time, events without a physical location are planned, such as Facebook Live Events. Since the location of the event is online rather that at a physical location, it would be great if there could be a way to display the event’s featured image in place of the ‘Map Unavailable’ text that shows where the Google Map normally would be for a physical location.

    How can we achieve something like this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You will need basic HTML knowledge to edit the display.

    edit “Single event page format” in events => settings => formatting => Events

    use PLACEHOLDERS #_EVENTIMAGE OR #_EVENTIMAGE{x,y}, conditional placeholders {has_location}content{/has_location} (event has a location.) {no_location}content{/no_location} (event does not have a location.) and custom HTML/CSS

    • This reply was modified 8 years, 5 months ago by leleuf.
    • This reply was modified 8 years, 5 months ago by leleuf.

    Just to add a bit more detail to @leleuf62’s answer.

    Under the code / formatting that looks like this…

    {has_location}
    <p>
    	<strong>Location</strong><br/>
    	#_LOCATIONLINK
    </p>
    {/has_location}

    …add something like this…

    {no_location}
    <p>
    	
    	#_EVENTIMAGE{100,100}
    </p>
    {/no_location}

    You may need to adjust the width and height of the image (the {100,100} part) to fit your site design.

    Thread Starter pracko

    (@pracko)

    Great, thanks. I got the featured image to appear, but how do I get the ‘Map Unavailable’ text to disappear for events with no location?

    • This reply was modified 8 years, 5 months ago by pracko.
    Thread Starter pracko

    (@pracko)

    I figured it out. I had to wrap the map placeholder with the “has_location” tokens like this: {has_location}#_LOCATIONMAP{/has_location}

    Thanks for all your help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Replace ‘Map Unavailable’ with Featured Image?’ is closed to new replies.