Forum Replies Created
-
AuthorPosts
-
February 8, 2016 at 5:37 pm in reply to: Mobile view- auto scroll to events when day is clicked #1069880
david
ParticipantI have had too many problems with the modern tribe calendar so I am not using it anymore- I use eventon which does the click a date and it scrolls to the date- and you can add it to any page via shortcode http://kidsmagicworld.com.au/thankyou/?page_id=5973 making changes is so much easier, changing colors, language is all built into it- too much screwing around with css to get modern tribe working the way I want and the fact it had no shortcode ruins it
the event info loads on the same page- it’s got googlemaps integration you can sell tickets although I don’t need that for my events, and another plugin I have called eyesonly works on this eventon (which hides event details to all not logged in) – I removed a hover effect on eventon because it was playing up on some mobiles but thats the only backend stuff I have done- thanks for your help but I was losing business and needed to get it sorted right now.
February 4, 2016 at 6:51 pm in reply to: Mobile view- auto scroll to events when day is clicked #1067965david
Participantyes mobile month view is the view I need it scrolled- please note my calendar is not the latest build- as i have a few css mods http://www.kidsmagicworld.com.au/events/ and I did install the latest and all the css changes I have made didn’t work( and it would have taken a long time to update) i am using Version 3.12.5 if that is relevant.
david
Participantmy error I didn’t add a
</div>so the right working script is
?>
<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"><a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a></h3> <div class="duration"> <h5><?php echo tribe_events_event_schedule_details(); ?></h5>................ </div> </div><!-- #tribe-events-event-# -->I didn’t add the last /div tag in which was causing the problem- all fixed now thank you sooooo much for your help
david
Participant<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"><a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a></h3> <div class="duration"> <h6><?php echo tribe_events_event_schedule_details(); ?></h6> </div><br><!-- #tribe-events-event-# -->I got the size I want happening so now it’s just to keep the events under each other instead of being slightly to the right
david
ParticipantOK that seemed to work- on desktop and mobile- is there any way (sorry I hate to ask more questions after you gave me what I asked for) to move the font size down so that the time fits on 1 line- if not- fair enough
also if you go here http://kidsmagicworld.com.au/events/?reloaded=true and go back to december where there are many events you’ll see they don’t line up that well- should I add a <br> to the code somewhere to create a line break
I have taken most of jan off but most of the time there will be 2-3 events on sat and sun for example the 12th dec shows 3 events and each other event is slightly to the right- I hope that made sense- but thank you for your work- I can currently launch the calendar now and make it live which has been a stress, so thank you
this is what I currently have:
<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"><a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a></h3> <div class="duration"> <?php echo tribe_events_event_schedule_details(); ?> </div><!-- #tribe-events-event-# -->-
This reply was modified 10 years, 3 months ago by
david.
david
Participantthe following code added to the functions file adds the start time- is there a way of expanding this code to also show the end time?
/* * Adds start time to event titles in Month view */ function tribe_add_start_time_to_event_title ( $post_title, $post_id ) { if ( !tribe_is_event($post_id) ) return $post_title; // Checks if it is the month view, modify this line to apply to more views if ( !tribe_is_month() ) return $post_title; $event_start_time = tribe_get_start_time( $post_id ); if ( !empty( $event_start_time ) ) { $post_title = $event_start_time . ' - ' . $post_title; } return $post_title; } add_filter( 'the_title', 'tribe_add_start_time_to_event_title', 100, 2 );david
Participanthere is a screen shot of the code http://kidsmagicworld.com.au/wp-content/uploads/2016/01/thecodescreenshot.jpg and the plugins/the-events-calendar/src/views/month/single-event.php page doesn’t work like this
david
Participantnot looking right
* */ ?> <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><a>" class="url"><?php echo $title ?></a></h3> <div class="duration"> <?php echo tribe_events_event_schedule_details(); ?> </div> </div><!-- #tribe-events-event-# -->makes it look like this screen shot. I an not sure how or where to add the code http://kidsmagicworld.com.au/wp-content/uploads/2016/01/calno.jpg
david
Participantif you can’t help with the above an alternative if you could show me how is to create a custom field (a text line) and then how to echo that into the month view under the title but I forsee that the mobile view will show it on the calndar
david
Participantbugger- in mobile view it displays the H tags so it displays
Crows Nest<br><h5>10:00 am to 12:00 pm</h5>close but no cigar- this is frustrating as all hell-
This reply was modified 10 years, 3 months ago by
david.
david
Participantactually if I do a
<br> and then <h6>10:00 am to 12:00 pm</h6>then it does what is needed I think I will look into having css hide times from the mobile view and this sorts it out- I’ll test to see what it looks like on mobile devices-
This reply was modified 10 years, 3 months ago by
david.
david
Participantif all else fails I can add it to the event title with a
<br>in between the title and times- although it does not look as goodand then on mobile use some css to hide the actual start + finish times from displaying. Not really what I am after as it looks bad- see 23rd Jan http://kidsmagicworld.com.au/events/2016-01/?reloaded=true it would be nice to have the start + end times all on 1 line a slightly smaller font
david
Participantnope removing the ! doesn’t even display the times
david
ParticipantI am not a web guy but I have seen this page https://codex.wordpress.org/Function_Reference/wp_is_mobile
they don’t have a ! so I will try it without the ! see if that works
david
ParticipantThis reply is private.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
