Home › Forums › Ticket Products › Event Tickets Plus › URGENT REMOVE: event_meta e related_event
- This topic has 3 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
April 3, 2014 at 12:35 pm #127586
nicolapiccinini
ParticipantHi 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 wooticket3) 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
nicolaApril 3, 2014 at 1:07 pm #127604Barry
MemberHi 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 wooticketPlease 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.
April 5, 2014 at 3:13 am #128470nicolapiccinini
ParticipantThanks Barry, i solved the problem 🙂
… and sorry for double questions, was the first & last time 😛
have a good day!
ciuz
nicolaApril 17, 2014 at 7:05 am #135038Barry
MemberExcellent!
-
AuthorPosts
- The topic ‘URGENT REMOVE: event_meta e related_event’ is closed to new replies.
