Remove who's attending from event page

Home Forums Ticket Products Event Tickets Plus Remove who's attending from event page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1117691
    Claire
    Participant

    Please can you let me know how to remove the “who’s attending”from my event page? I saw a post which had some code to add to functions.php but i’m not very techie please can you share more information on how I do this?

    I also only have one event I want to display, is there anyway to remove the <all events> link on the top of my page?

    http://the-tech-expo.com/event/register-early-bird/

    Thanks

    #1118008
    Hunter
    Moderator

    Hey Claire,

    Thank you for reaching out 🙂

    I’d be happy to help assist. To answer your first question, you will need to add the following code to the bottom of your theme’s functions.php file. You can do this using a text editor connected via FTP or through a program such as Filezilla. There are all kinds of articles and tutorials showing how to do this. If you need help finding anything, let me know.

    /**
    * Disables the public attendee lists on all events
    *
    * Removes the tribe_events_single_event_after_the_meta action that injects the attendee
    * list that was introduced with the initial 4.1 release of Event Tickets Plus
    */
    function disable_attendee_list_on_post() {
    if ( ! class_exists( 'Tribe__Tickets_Plus__Attendees_List' ) ) {
    return;
    }

    remove_action(
    'tribe_events_single_event_after_the_meta',
    array(
    Tribe__Tickets_Plus__Attendees_List::instance(),
    'render'
    ),
    4
    );
    }

    add_action( 'wp', 'disable_attendee_list_on_post' );

    To hide the ‘All Events’ text, you can do so by either a template override as explained in our Themer’s Guide or through CSS which is typically added to style.css in your theme folder. For the overwrite, you’ll need to delete/comment out lines 26-28 on /the-events-calendar/src/views/single-event.php. The CSS code to “hide” the ‘All Events’ text is:

    .tribe-events-back a {
    display:none;
    }

    I hope this helps and best of luck. Thank you again and have a great upcoming week!

    #1123422
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove who's attending from event page’ is closed to new replies.