Home › Forums › Calendar Products › Events Calendar PRO › can not get things to display correctly single event
- This topic has 10 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 11, 2015 at 12:29 am #985601
chris
ParticipantIn the image you can see how the ‘Details” and “Venue” are in a single column over the map set to the left. This is causing to much white space to be present on this single event listing. Unfortunately true editing of php files is not where I have a lot of experience. If someone could please help me figure out a way to make this two columns instead of just the one I would be very greatful.
Chris
July 11, 2015 at 12:32 am #985602chris
Participanthttp://malibuliving.org/tribe/ec-issue.jpg to see the image and what I am talking about
July 11, 2015 at 8:43 am #985624chris
ParticipantChecking to see if anyone has seen this yet?
July 12, 2015 at 5:21 am #985670Geoff
MemberHey there, Chris! Nice to see you again and hope all is well. 🙂
Sorry for the wait time here. We generally answer threads Monday through Friday which is why there’s been a bit of a lag.
Did my answer in your previous thread not remove that spacing for you? That should have placed Details and Venue on the same line, while keeping the map below that area.
Cheers!
GeoffJuly 12, 2015 at 11:39 am #985720chris
ParticipantHi Geoff,
I have followed your directions. On Line 44 I can see:
// Include organizer meta if appropriate
if ( tribe_has_organizer() ) {
tribe_get_template_part( ‘modules/meta/organizer’ );
}on line 64 all I have is tribe_get_template_part( ‘modules/meta/venue’ );
on line 65 it is tribe_get_template_part( ‘modules/meta/map’ );There is not code on line 64 that looks exactly the same as what is on line 44. I also looked in the events-calendar/src/views/modules In the this folder I have the meta folder address.php, bar.php, map.php, and meta.php. I copied the meta.php but I just can not find the chage you are talking about to make.
What I have in the folder you told:
<?php
/**
* Single Event Meta Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta.php
*
* @package TribeEventsCalendar
*/do_action( ‘tribe_events_single_meta_before’ );
// Check for skeleton mode (no outer wrappers per section)
$not_skeleton = ! apply_filters( ‘tribe_events_single_event_the_meta_skeleton’, false, get_the_ID() );// Do we want to group venue meta separately?
$set_venue_apart = apply_filters( ‘tribe_events_single_event_the_meta_group_venue’, false, get_the_ID() );
?><?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta primary tribe-clearfix”>
<?php endif; ?><?php
do_action( ‘tribe_events_single_event_meta_primary_section_start’ );// Always include the main event details in this first section
tribe_get_template_part( ‘modules/meta/details’ );// If we have no map to embed and no need to keep the venue separate…
if ( ! $set_venue_apart && ! tribe_embed_google_map() ) {
tribe_get_template_part( ‘modules/meta/venue’ );
} elseif ( ! $set_venue_apart && ! tribe_has_organizer() && tribe_embed_google_map() ) {
// If we have no organizer, no need to separate the venue but we have a map to embed…
tribe_get_template_part( ‘modules/meta/venue’ );
echo ‘<div class=”tribe-events-meta-group tribe-events-meta-group-gmap”>’;
tribe_get_template_part( ‘modules/meta/map’ );
echo ‘</div>’;
} else {
// If the venue meta has not already been displayed then it will be printed separately by default
$set_venue_apart = true;
}// Include organizer meta if appropriate
if ( tribe_has_organizer() ) {
tribe_get_template_part( ‘modules/meta/venue’ );
}do_action( ‘tribe_events_single_event_meta_primary_section_end’ );
?><?php if ( $not_skeleton ) : ?>
</div>
<?php endif; ?><?php if ( $set_venue_apart ) : ?>
<?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta secondary tribe-clearfix”>
<?php endif; ?>
<?php
do_action( ‘tribe_events_single_event_meta_secondary_section_start’ );tribe_get_template_part( ‘modules/meta/venue’ );
tribe_get_template_part( ‘modules/meta/map’ );do_action( ‘tribe_events_single_event_meta_secondary_section_end’ );
?>
<?php
if ( $not_skeleton ) : ?>
</div>
<?php endif; ?>
<?php
endif;
do_action( ‘tribe_events_single_meta_after’ );Anyways if you could let me know what is wrong here that would be great. And thanks for time.
Chris
July 13, 2015 at 4:46 am #985776Geoff
MemberHello Chris,
Here’s an example of how I as able to move the Venue info next to the Details info in place of the Organizer info in the Single Event View. This is a screenshot of how that looks when saved in my theme.
Does this help? I’ll go ahead and close the other thread we had open since we’re continuing the conversation here. 🙂
Cheers!
GeoffJuly 13, 2015 at 9:33 am #985933chris
ParticipantHi Geoff,
That did not work either. All it did was duplicated the venue that was above the map. https://s3.amazonaws.com/forgeoff/for+geoff.zip And put it underneath the map. You can see this in the first image in the zip file. So what I did by accident, was I deleted everything in the meta.php file. Now it does not show anything (meta info), but I can live with that. You can see this in the second image. However, going the route of the second image…is there a way to add/show the map in this scenario?
Thanks for your time.
Chris
July 13, 2015 at 11:35 am #985995Geoff
MemberHere, perhaps try this instead for your meta.php file. It seems to work for me without duplicating venue info.
Geoff
July 13, 2015 at 12:21 pm #986005chris
ParticipantSame thing. It has probably something to do with the theme I am using. Not going to worry about it that much now. However is there a way to just add the map in the meta.php to just call out the map, no venues, organizies, or details; just they map . So it will fit nicely into the Geoff image 2, I sent you in the zip file?
Chris
July 14, 2015 at 6:09 am #986197Geoff
MemberHey Chris,
Shoot, sorry about that! I really thought that last round of code would do the trick.
Yeah, you should be able to cut out the details meta and just be left with the map. You may need to fiddle with exactly which parts to remove since it seems your theme is behaving differently with mine, but removing this is what worked for me:
[php]
// Always include the main event details in this first section
tribe_get_template_part( ‘modules/meta/details’ );// If we have no map to embed and no need to keep the venue separate…
if ( ! $set_venue_apart && ! tribe_has_organizer() && tribe_embed_google_map() ) {
// If we have no organizer, no need to separate the venue but we have a map to embed…
tribe_get_template_part( ‘modules/meta/venue’ );
echo ‘<div class="tribe-events-meta-group tribe-events-meta-group-gmap">’;
tribe_get_template_part( ‘modules/meta/map’ );
echo ‘</div>’;
} else {
// If the venue meta has not already been displayed then it will be printed separately by default
$set_venue_apart = true;
}
[/php]Cheers!
GeoffJuly 29, 2015 at 7:05 am #991373Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘can not get things to display correctly single event’ is closed to new replies.
