• Resolved koldsnapz

    (@koldsnapz)


    If no events are published, the widget just shows the title and that’s it. There should be some conditional empty text so it doesn’t look broken. such as “There are currently no Events published. Please check back later or visit our Facebook page at {insert link here based on credentials}”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dharmesh Patel

    (@dharm1025)

    Hello @koldsnapz,

    Thanks for reaching out to us.

    Thanks for providing a great suggestion. We are adding this to our TO DO list and will release it in upcoming release.

    Thanks again for your suggestion.

    Regards,
    Xylus Themes

    To solve this, you can:

    Edit the plugin >> go at the “class-xt-facebook-events-facebook.php” >> search for this code:

    $facebook_events = $this->get_events_for_facebook_page( $atts );
    	if( !empty( $facebook_events ) ){
    		$this->render_facebook_event_listing( $facebook_events, $atts );
    	}
                    return ob_get_clean();
    }

    and before “return ob_get_clean();” put this:

    else{
    	echo '<p style="font-size:16px;">No events</p>';
    }

    In “No events” you can write your message and you can add styles (css) too.

    Sorry for the english, I hope I’ve helped.

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

The topic ‘No Events Found empty text needed’ is closed to new replies.