Changing order of content on Events

Home Forums Calendar Products Events Calendar PRO Changing order of content on Events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #949371
    ben.wurst
    Participant

    Great products! Thank you for offering them for free to NPOs!!

    I’m running Events Pro and many other add ons. Question: How can I change the order of content on events?

    I’d like to move the event details, location, and ticket purchasing areas up above the “share” and “export to Google Calendar” buttons.

    Example: http://islandbeachnatureprograms.org/event/sunset-paddle-2015-07-11/

    thanks in advance!!

    B

    #949413
    Barry
    Member

    Hi B,

    In terms of customizing our own templates this best starting point is our Themer’s Guide, which explains so of the basic mechanics for make safe tweaks and adjustments:

    theeventscalendar.com/knowledgebase/themers-guide

    Am I right in thinking you want the event description to stay in the same place? If so, the tricky thing here is going to be moving the “share” buttons, which are not generated by our plugin and are instead “injected” in to the event description itself.

    Actually pushing the Google/iCal buttons below the event meta is fairly easy, a short snippet like this should do the trick:

    add_action( 'wp_head', 'reposition_gcal_ical_links' );
    
    function reposition_gcal_ical_links() {
    	$callback = array( 'TribeiCal', 'single_event_links' );
    	remove_action( 'tribe_events_single_event_after_the_content', $callback );
    	add_action( 'tribe_events_single_event_after_the_meta', $callback, 5 );
    }

    This could be added to your theme’s functions.php file, for instance. To deal with the Share buttons, though, I’m afraid you’d need to seek the assistance of the authors of that plugin.

    If you can stop them from being injected into the event description (which I’m sure they can help you with) and figure out a manual way of inserting them (again, they should be able to help there) you can probably combine that knowledge with our own guides on setting up template overrides to reposition them in the case of single event views 🙂

    I hope that helps!

    #949423
    ben.wurst
    Participant

    Thanks for the response. I’ll have to play around with it a bit. I do want the event description to be where it is, but the event details box and especially the tickets area to be more prominent on the actual event page. Maybe we just have too much content (in the description) that is forcing those areas down the page.

    I am by no means a coding expert. I’ve only done some very minor changes to the site using CSS… but I do have someone who can help.

    I do know that the sharing buttons can be removed in WP. Maybe that’s what we’ll have to do.

    Thx, Ben

    #949426
    Barry
    Member

    Great – and I do wish we could help more with the sharing buttons side of life, but there are so many plugins out there we just can’t offer advice for them all, I’m afraid.

    In any case I hope that snippet helps with at least part of the task 🙂

    #952556
    ben.wurst
    Participant

    How can I move the ticket purchasing area to just below the event description?

    #952641
    Barry
    Member

    Does this knowledgebase article help?

    theeventscalendar.com/knowledgebase/moving-the-ticket-form

    #956651
    Barry
    Member

    Hi!

    It’s been a while so I’m going to go ahead and close this topic.

    • Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
    • Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changing order of content on Events’ is closed to new replies.