Add New Events Link to Events Page?

Home Forums Calendar Products Community Events Add New Events Link to Events Page?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #967314
    Ken Eastwood
    Participant

    Hi,

    Using Community Events and have been asked by our client if we can put a, “Add New Event” link on the Events page itself?

    Is this possible?

    I can understand the request – it would be logical and good for UX to have a link on the page i.e. on http://79.170.44.105/oxenhope.org.uk/events/ (site work in progress – hence reference URL).

    How can this be achieved?

    Thanks,

    ken

    #967414
    Brian
    Member

    Hi Ken,

    I can help out here.

    For adding links or any other modifications to the single template you can follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    That will show you how you can move and edit templates in your theme and there you could add an “Add New Event” link.

    Let me know if you have any follow up questions.

    Thanks

    #969518
    Ken Eastwood
    Participant

    For anyone else wanting to do this – I’ve added a new button for “Add New Event” next to the “Find Events” button on the Tribe Events bar.

    Edit /plugins/the-events-calendar/views/modules/bar.php and add <input class=”tribe-events-button tribe-no-param” name=”newEvent” type=”button” value=”Add New Event” onclick=”window.location.href =’http://yoururl/events/community/add&#8217;;return true;”/> immediately after the existing <input class=”tribe-events-button tribe-no-param” type=”submit” name=”submit-bar” value=”<?php _e( ‘Find Events’, ‘tribe-events-calendar’ ) ?>” />

    Style it up with a bit of CSS

    /* Tribe Events Bar */

    #tribe-bar-form .tribe-bar-submit input[type=submit] {
    margin-left: -210px!important;
    }
    #top #tribe-events-bar input, #top #tribe-events-bar select {
    margin-top: 10px!important;
    }
    #top #wrap_all .tribe-events-button {
    height: 50px!important;
    width: 175px;
    margin-left: 40px;
    }

    Hope that’s helpful.

    Ken

    #969554
    Brian
    Member

    I am glad to see you were able to figure it out and thanks for sharing the coding.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add New Events Link to Events Page?’ is closed to new replies.