Forum Replies Created
-
AuthorPosts
-
Jessica Hanson
ParticipantYes, here is the link: http://www.mingei.org/test/trunk-show/
And I am using Chrome in the screenshot, however it also occurs in Safari and Firefox. It is at the window width of 789px that I see this happen.
Thanks!
Jessica Hanson
ParticipantThat’s actually the wrong link 😉
Here is where your calendar is located: http://www.mingei.org/test/
Jessica Hanson
ParticipantOk, so… for instance…
On the pc web browser when I click on a filter the style that is tied to the class=”checked” turns the background white and the border blue. When I click on a filter on my mobile phone, the background color does not change, even though the input is actually checked. When I inspect in web developer mode on Chrome and have it viewed as mobile, the class=”checked” does not appear even though the input is checked. When I inspect in regular browser mode (not mobile) then the class=”checked” is applied.
This is important because on mobile, right now you cannot tell what is checked and not checked the way that it is styled. The styles are all done through CSS and work in regular browser view, so this must be an issue with your javascript not applying the style=”checked” to the input while in mobile view.
Jessica Hanson
ParticipantThank you! I just ended up making direct edits to general.php and made notes to re-enter my changes if there is an update. This is how my function looks, notice the new span class timeFormat.
I did a search within the-events-calendar/src/template-tags/general.php for:
function tribe_events_event_schedule_details( $event = null, $before = ”, $after = ” )then within this function there is a section starting with:
if ( tribe_event_is_multiday( $event ) ) { // multi-date event
I then went in and found:
tribe_get_start_date( $event, false, $time_format )
and
tribe_get_end_date( $event, false, $time_format )
and then added in my span class around these so that they ended up looking like this:
‘<span class=”timeFormat”>’.tribe_get_start_date( $event, false, $time_format ).'</span>’and
‘<span class=”timeFormat”>’.tribe_get_end_date( $event, false, $time_format ).'</span>’
In the end, this section looked like this:
if ( tribe_event_is_multiday( $event ) ) { // multi-date event
$format2ndday = apply_filters( ‘tribe_format_second_date_in_range’, $format, $event );
if ( tribe_event_is_all_day( $event ) ) {
$inner .= tribe_get_start_date( $event, true, $format );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
$inner .= ‘</span>’ . $time_range_separator;
$inner .= ‘<span class=”date-end dtend”>’;
$inner .= tribe_get_end_date( $event, true, $format2ndday );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatEndFormat . ‘”></span>’;
} else {
$inner .= tribe_get_start_date( $event, false, $format ) . ( $time ? $datetime_separator . ‘<span class=”timeFormat”>’.tribe_get_start_date( $event, false, $time_format ).'</span>’ : ” );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
$inner .= ‘</span>’ . $time_range_separator;
$inner .= ‘<span class=”date-end dtend”>’;
$inner .= tribe_get_end_date( $event, false, $format2ndday ) . ( $time ? $datetime_separator . ‘<span class=”timeFormat”>’.tribe_get_end_date( $event, false, $time_format ).'</span>’ : ” );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatEndFormat . ‘”></span>’;
}
} elseif ( tribe_event_is_all_day( $event ) ) { // all day event
$inner .= tribe_get_start_date( $event, true, $format );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
} else { // single day event
if ( tribe_get_start_date( $event, false, ‘g:i A’ ) === tribe_get_end_date( $event, false, ‘g:i A’ ) ) { // Same start/end time
$inner .= tribe_get_start_date( $event, false, $format ) . ( $time ? $datetime_separator . ‘<span class=”timeFormat”>’.tribe_get_start_date( $event, false, $time_format ).'</span>’ : ” );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
} else { // defined start/end time
$inner .= tribe_get_start_date( $event, false, $format ) . ( $time ? $datetime_separator . ‘<span class=”timeFormat”>’.tribe_get_start_date( $event, false, $time_format ).'</span>’ : ” );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
$inner .= ‘</span>’ . ( $show_end_time ? ‘<span class=”timeFormat”>’.$time_range_separator.'</span>’ : ” );
$inner .= ‘<span class=”end-time dtend”>’;
$inner .= ( $show_end_time ? ‘<span class=”timeFormat”>’.tribe_get_end_date( $event, false, $time_format ).'</span>’ : ” ) . ‘<span class=”value-title” title=”‘ . $microformatEndFormat . ‘”></span>’;
}
}$inner .= ‘</span>’;
October 13, 2015 at 8:59 am in reply to: Filter bar bug when browser window is resized to below 767px #1014172Jessica Hanson
ParticipantThis reply is private.
October 12, 2015 at 8:08 pm in reply to: Filter bar bug when browser window is resized to below 767px #1013940Jessica Hanson
ParticipantIt does work when I enable the default wordpress theme.. so what is going on here?
Jessica Hanson
ParticipantThis reply is private.
Jessica Hanson
ParticipantThat is understandable and I’m sorry for bothering you! Now the issue I have is when I remove excerpt from the tooltip.php it simply does not work. The tutorial mentions this, but doesn’t go on about how to remove it, any guidance would be much appreciated!
Thanks!
Jessica Hanson
ParticipantNot entirely…
Where do I copy/paste
into single_event.php at the bottom, the top, anywhere…?
Also, at the bottom of the page, I don’t know what you mean by adding the second argument to this:
<div id=”tribe-events-event-<?php echo esc_attr( $event_id ); ?>” class=”<?php tribe_events_event_classes() ?>” data-tribejson='<?php echo esc_attr( tribe_events_template_data( $post ) ); ?>’>
<h3 class=”tribe-events-month-event-title entry-title summary”>” class=”url”><?php echo $title ?></h3>
</div><!– #tribe-events-event-# –>This is all that is shown at the bottom of the single_event.php
Can you please show me how the last part should be laid out? I don’t want the extra field to be shown on single event month view, just the tooltip and mobile, Thank you!
Jessica Hanson
ParticipantYea, the instructions are not so helpful.. I just read through them twice.
Am I supposed to only be editing the tooltip.php or some other file?
I added this to the top of the tooltip.php and then added my string to the content below, here is how my file looks now. It returns an error.
<?php
/**
*
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates.
*
*/$additional_data = array();
$string = the_field(‘description’);
$additional_data[‘description’] = $string;
echo tribe_events_template_data( $post, $additional_data ); ?>?>
<script type=”text/html” id=”tribe_tmpl_month_mobile_day_header”>
<div class=”tribe-mobile-day” data-day=”[[=date]]”>[[ if(has_events) { ]]
<h3 class=”tribe-mobile-day-heading”>[[=i18n.for_date]] <span>[[=raw date_name]]</span></h3>[[ } ]]
</div>
</script><script type=”text/html” id=”tribe_tmpl_month_mobile”>
<div class=”tribe-events-mobile hentry vevent tribe-clearfix tribe-events-mobile-event-[[=eventId]][[ if(categoryClasses.length) { ]] [[= categoryClasses]][[ } ]]”>
<h4 class=”summary”>
[[=title]]
</h4><div class=”tribe-events-event-body”>
<div class=”updated published time-details”>
<span class=”date-start dtstart”>[[=dateDisplay]] </span>
</div>
[[ if(imageSrc.length) { ]]
<div class=”tribe-events-event-image”>
</div>
[[ } ]]
<p class=”entry-summary description”>[[=raw description]]</p>
[[=i18n.find_out_more]]
</div>
</div>
</script>Jessica Hanson
ParticipantNevermind I found it in the-events-calendar/src/Tribe/Main.php
Have a good one!!
Jessica Hanson
ParticipantThank you this helped, however, I’m trying to find the page to edit to also remove the default excerpt field from the new event admin page. I can’t seem to find it, any help would be much appreciated, thank you!
Jessica Hanson
ParticipantYes, I just found the tab late yesterday within the plugin… oops! Thank you so much for all your help 🙂
Jessica Hanson
Participanthmm.. not exactly because I want it to show up on the Add New Event page, is there a way to edit the Add New Event page that is displayed in WordPress Admin? If so, what is the file I’ll need to edit? I need this functionality, because multiple newer users use this page to add events.
Thanks!
-
AuthorPosts
