Forum Replies Created
-
AuthorPosts
-
cruzioParticipant
Ok understood. We got so close too! Hopefully I can find someone that can assist.
Marking as resolved.
cruzioParticipantThe tooltips display upon page load. If I advance a week, they stop displaying, and if I go back a week they still don’t display.
cruzioParticipantStill not quite working. The site is now live here: http://www.cruzio.com/events/week/2014-10-13
Sometimes the tooltip fires, sometimes it doesn’t. If it does, the location is exactly the same for each event. The console reports this error:
Uncaught TemplateError: TypeError: Cannot read property ‘length’ of null (on tribe_tmpl_tooltip line 18)cruzioParticipantGetting closer. The tooltip displays the new paragraph, but it’s putting the event title in instead of the location. Can you help me figure out why?
July 15, 2014 at 9:27 am in reply to: Customize the minutes available in select for starting and ending date/time? #395501cruzioParticipantOk I think I have this working, using jquery. Based my work off here: http://stackoverflow.com/questions/375508/removing-an-item-from-a-select-box
This is the code I used, add to my .js file://remove select options
jQuery(document).ready(function($){
$(“#tribe-event-datepickers select option[value=’05’]”).remove();
$(“#tribe-event-datepickers select option[value=’10’]”).remove();
$(“#tribe-event-datepickers select option[value=’15’]”).remove();
$(“#tribe-event-datepickers select option[value=’20’]”).remove();
$(“#tribe-event-datepickers select option[value=’25’]”).remove();
$(“#tribe-event-datepickers select option[value=’35’]”).remove();
$(“#tribe-event-datepickers select option[value=’40’]”).remove();
$(“#tribe-event-datepickers select option[value=’45’]”).remove();
$(“#tribe-event-datepickers select option[value=’50’]”).remove();
$(“#tribe-event-datepickers select option[value=’55’]”).remove();
});July 15, 2014 at 9:16 am in reply to: Customize the minutes available in select for starting and ending date/time? #395379cruzioParticipantSeems to be a browser issue. Firefox mostly works, but Chrome and Safari do not. Did some research and it looks like hiding select options is not well supported cross browser. Do you know of any workarounds?
July 15, 2014 at 8:17 am in reply to: Customize the minutes available in select for starting and ending date/time? #394765cruzioParticipantThanks for the quick response! I added the code to my functions.php, and I see the code getting added when I view source, but the select options remain the same.
cruzioParticipantThanks for replying, and sorry for my delay. I attempted this but couldn’t get it to work. I used your reply from the thread you posted as a guideline. So, in single-event-hourly.php, I added:
<?php
$additional_values = array();
$additional_values[‘venue’] = tribe_get_venue($event_id);
?>And then in tooltip.php I added:
[[ if(venue.length) { ]]
Venue: [[=venue]]
[[ } ]]When I look at a tooltip, they don’t appear, and the console reports this error:
Uncaught TemplateError: ReferenceError: venue is not defined (on tribe_tmpl_tooltip line 19)Any idea where I went wrong?
-
AuthorPosts