URGENT REMOVE: event_meta e related_event

Home Forums Ticket Products Event Tickets Plus URGENT REMOVE: event_meta e related_event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #127586
    nicolapiccinini
    Participant

    Hi guys
    i’ve Avada Theme + Woocommerce + The Event Calendar (Pro & WooCommerce Tickets)

    Today I made the update of your plugin and turn again things that I had previously removed: event_meta and related_event

    I urgently please you to:

    1) remove related_event
    I mentioned previously this need and you invite me to put in function.php (successfully) the following code:
    remove_action (‘tribe_events_single_event_after_the_meta’, ‘tribe_single_related_events’); (http://pastebin.com/TpJreMfb#)
    now no longer works and are back the related events 😉
    How can I remove them again?

    2) remove the event-meta
    as shown in the screenshot https://www.dropbox.com/s/41anx9xh8x1yx84/screenshot.png I need to remove the box with the information related to each event and leave only the box with the button for the purchase of wooticket

    3) I should then show the box also purchase between image and content, and not only in content. As was the case before. Now I can not get the thing

    Please give me directions as the current layout has a negative impact on the conversion of visits into purchases;)

    thanks a lot
    nicola

    #127604
    Barry
    Member

    Hi Nicola,

    I mentioned previously this need and you invite me to put in function.php (successfully) the following code:
    remove_action (‘tribe_events_single_event_after_the_meta’, ‘tribe_single_related_events’);

    Lots of people wanted this capability and so we now offer a setting to accomplish this: please visit Events → Settings → Display and look for Hide Related Events: enabling this will achieve the same thing as would previously been facilitated by the code you referenced. If for any reason you still want to remove the action programmatically you could use this:

    if ( class_exists( 'TribeEventsPro' ) ) {
    	$related_events = array( TribeEventsPro::instance(), 'register_related_events_view' );
    	remove_action('tribe_events_single_event_after_the_meta', $related_events );
    }

    2) remove the event-meta
    as shown in the screenshot https://www.dropbox.com/s/41anx9xh8x1yx84/screenshot.png I need to remove the box with the information related to each event and leave only the box with the button for the purchase of wooticket

    Please review the Themer’s Guide in the first instance, then set up an override for the single-event.php template. Within that, simply remove the following code:

    <!-- Event meta -->
    <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
    	<?php echo tribe_events_single_event_meta() ?>
    <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>

    3) I should then show the box also purchase between image and content, and not only in content. As was the case before. Now I can not get the thing

    Have you tried the steps described here?

    Finally, please note that it is our policy to stick to one issue per thread. I hope this reply largely gets you on track, but if you need further help with any items not relating to WooCommerce Tickets (such as points 1 and 2) please post them separately.

    #128470
    nicolapiccinini
    Participant

    Thanks Barry, i solved the problem 🙂
    … and sorry for double questions, was the first & last time 😛
    have a good day!
    ciuz
    nicola

    #135038
    Barry
    Member

    Excellent!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘URGENT REMOVE: event_meta e related_event’ is closed to new replies.