Event Calendar and Community Events

Home Forums Calendar Products Events Calendar PRO Event Calendar and Community Events

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #159697
    dgdubois
    Participant

    2 Questions here:
    1. Is there a way I can put a link on the Calendar Events page that links to “submit you event” and goes to the community add event page?
    2. If there a way I can get the calendar widget to appear the community add event page? Currently I do not think my page templates are setup to require sidebars so I think that is my main problem?

    #160850
    Barry
    Member

    Hi!

    1. Is there a way I can put a link on the Calendar Events page that links to “submit you event” and goes to the community add event page?

    Definitely. You could customize the relevant templates (see our Themer’s Guide to learn about doing this safely) or you could use a hook and add a snippet to your theme’s functions.php file, something like this:

    add_filter( 'tribe_events_before_html', 'community_submission_link' );
    
    function community_submission_link( $html ) {
    	if ( tribe_is_community_edit_event_page() || tribe_is_community_my_events_page() ) return $html;
    	$link = '<a href="/events/community/add/"> Submit an event! </a>';
    	return $html . $link;
    }

    2. If there a way I can get the calendar widget to appear the community add event page? Currently I do not think my page templates are setup to require sidebars so I think that is my main problem?

    That could certainly be the reason. You could potentially edit your page template (if that’s what you are using) and add a sidebar, though, and could even do so conditionally so it only appears on the submission page – something like:

    if ( tribe_is_community_edit_event_page() ) get_sidebar();

    I hope that helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Event Calendar and Community Events’ is closed to new replies.