cruzio

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Add venue to week view tooltip, week view mobile #827166
    cruzio
    Participant

    Ok understood. We got so close too! Hopefully I can find someone that can assist.

    Marking as resolved.

    in reply to: Add venue to week view tooltip, week view mobile #812539
    cruzio
    Participant

    The 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.

    in reply to: Add venue to week view tooltip, week view mobile #812537
    cruzio
    Participant

    Still 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)

    in reply to: Add venue to week view tooltip, week view mobile #810577
    cruzio
    Participant

    Getting 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?

    cruzio
    Participant

    Ok 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();
    });

    cruzio
    Participant

    Seems 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?

    cruzio
    Participant

    Thanks 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.

    in reply to: Add venue to week view tooltip #167758
    cruzio
    Participant

    Thanks 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?

Viewing 8 posts - 1 through 8 (of 8 total)