• Resolved Yes931

    (@yes931)


    When I share an event to facebook either by copying and pasting the url of the event or using a facebook share button plugin, it shows the event title but then the event description is cut off because it puts the following in first and gets truncated before anyone can see it. Is there any way to eliminate the “loading map” and all the non-relevant details before getting to the actual page content? I’ve also tried disabling maps but then it just says “No Map”…
    Here is what the facebook posts look like but gets cut off in the actual post after the first several words.

    Loading Map…. R Bar2883 West Liberty Avenue – DormontEvents 40.3951003 -80.0335081 Date/Time Date(s) – 05/01/20166:00 pm – 9:00 pm Location R Bar Categories Blues & Rock Every Sunday from 6-9 PM Billy the Kid and the Regulators will feature a special guest and jam session for attendees who want to join in.

    https://www.ads-software.com/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment this might require custom coding on your part to make this work; but this is already been requested.

    Thread Starter Yes931

    (@yes931)

    Thanks Angelo. I wouldn’t know which page to edit. Hope they can fix it.. Looks like an error when sharing events on fb posts. Great plugin otherwise!

    Hi Angelo,

    I tried to put this code in events-manager/templates/templates/event-single.php

    <?php
    /*
     * This page displays a single event, called during the em_content() if this is an event page.
     * You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
     * You can display events however you wish, there are a few variables made available to you:
     *
     * $args - the args passed onto EM_Events::output() 
    
     */
    global $EM_Event;
    /* @var $EM_Event EM_Event */
    if( $EM_Event->status == 1 ){
    ?>
    <meta property="og:type" content="activity" />
    <meta property="og:title" content="<?php echo $_SERVER['REQUEST_URI'] ?>" />
    <meta property="og:url" content="<?php echo $_SERVER['REQUEST_URI'] ?>" />
    <meta property="og:site_name" content="sitename" />
    <meta property="og:description" content="" />
    <?php
    	echo $EM_Event->output_single();
    }else{
    	echo get_option('dbem_no_events_message');
    }
    ?>

    But it displays the meta property in the <body>, not in the <head> where it should go according to Facebook’s instructions: https://developers.facebook.com/docs/plugins/share-button#example

    Can you point me to a way to put this in the header?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Facebook event share shows loading map in description’ is closed to new replies.