Forum Replies Created
-
AuthorPosts
-
November 23, 2016 at 7:25 am in reply to: Display untruncated content in mobile calendar view #1196473ChrisParticipant
You are the MAN Josh! That 100% did the trick!
Thank you, thank you, thank you.
ChrisParticipantThis turned out to be a bug in the theme code. Thank you.
November 21, 2016 at 9:55 am in reply to: Display untruncated content in mobile calendar view #1195391ChrisParticipantHi Josh, any luck with this one yet?
November 10, 2016 at 8:49 am in reply to: Display untruncated content in mobile calendar view #1190420ChrisParticipantThanks Josh, but it didn’t work. Here is what I did:
1) Properly copied /views/month/single-event.php to my child theme (mobile.php was already there and working properly)
2) Added the following 2 lines of code you provided to lines 29 and 30 where the rest of the post data is saved in variables:
$day = tribe_events_get_current_month_day(); $event_id = "{$post->ID}-{$day['daynum']}"; $link = tribe_get_event_link( $post ); $title = get_the_title( $post ); $content = array(); $content['content'] = $post->post_content;
3) Changed line 35 of mobile.php from
<div class="tribe-event-description"> [[=raw excerpt]] </div>
to
<div class="tribe-event-description"> [[=content]] </div>
Oddly, in that top codeblock, I don’t see the “excerpt” being gathered but yet it’s called.
November 9, 2016 at 5:50 am in reply to: Display untruncated content in mobile calendar view #1189564ChrisParticipantJust mobile. We aren’t currently using the tooltips, but if we decide to we would want the excerpt displayed there as the event content would be too much.
ChrisParticipantThanks Geoff, that is what I did.
But a little checkbox on the settings page labelled “Disable links to single event pages” would be really handy. 🙂
ChrisParticipantThank you, as much as your advice makes sense it didn’t work. I tried copying the file containing the value I need to change to several locations without success. But I did find a solution.
Within /themes/parent-theme/framework/modules/events/events-functions.php there is a function that sets that page title. I copied that function to my themes functions.php and changed the value of $text from “Events Calendar” to “Activities Calendar”. That did it.
Here is that function:
if(!function_exists('wellspring_mikado_events_archive_title_text')) { /** * Hooks to title text filter and alters it for events calendar page * @param $text * * @return string */ function wellspring_mikado_events_archive_title_text($text) { if(is_post_type_archive('tribe_events')) { $text = esc_html__('Activities Calendar', 'wellspring-child'); } return $text; } add_filter('wellspring_mikado_title_text', 'wellspring_mikado_events_archive_title_text'); }
- This reply was modified 7 years, 6 months ago by Chris.
-
AuthorPosts