Skip to content

Instantly share code, notes, and snippets.

@kmindi
Last active March 12, 2018 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmindi/91f416bbc92ed4179a3c15950579644e to your computer and use it in GitHub Desktop.
Save kmindi/91f416bbc92ed4179a3c15950579644e to your computer and use it in GitHub Desktop.
fix for enfold changing additional meta data behavior for events tickets plus
--- a/wp-content/themes/enfold/config-events-calendar/views/single-event.php
+++ b/wp-content/themes/enfold/config-events-calendar/views/single-event.php
@@ -55,7 +55,7 @@ $event_id = get_the_ID();
<?php echo tribe_event_featured_image($event_id, 'entry_with_sidebar', false); ?>
<?php the_content(); ?>
</div><!-- .tribe-events-single-event-description -->
- <div class='av-single-event-meta-bar av-single-event-meta-bar-mobile'>
+ <div class='av-single-event-meta-bar'>
<div class='av-single-event-meta-bar-inner'>
<!-- Event meta -->
<?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
@@ -83,41 +83,7 @@ $event_id = get_the_ID();
<?php if( get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
</div> <!-- av-single-event-content -->
-
- <div class='av-single-event-meta-bar av-single-event-meta-bar-desktop'>
-
- <div class='av-single-event-meta-bar-inner'>
-
- <!-- Event meta -->
- <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
- <?php
- /**
- * The tribe_events_single_event_meta() function has been deprecated and has been
- * left in place only to help customers with existing meta factory customizations
- * to transition: if you are one of those users, please review the new meta templates
- * and make the switch!
- *
- * Function was removed in version 3.11 on 22.7.2015
- *
- * To allow a more logical order of content on mobile/desktop we add 2 copies of the meta data
- * and show/hide with CSS
- */
- if ( ! apply_filters( 'tribe_events_single_event_meta_legacy_mode', false ) )
- {
- tribe_get_template_part( 'modules/meta' );
- }
- else
- {
- echo tribe_events_single_event_meta();
- }
- ?>
- <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
-
- </div>
- </div>
-
-
- </div> <!-- #post-x -->
+ </div> <!-- #post-x -->
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment