Honey Shelton

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: {{meta_EventStartDate}} #1126649
    Honey Shelton
    Participant

    there’s a way to insert custom javascript so I was thinking maybe a slice.

    var eventstart = document.getElementById("slide-7308-layer-4");
    eventstart.innerHTML.slice(0,-4);

    I realize it’s beyond the scope of your support though. I’ll continue playing with it.

    in reply to: List view with shortcode #1126378
    Honey Shelton
    Participant

    Thanks I will investigate that route!

    in reply to: Calendar view popover shows javascript #1010154
    Honey Shelton
    Participant

    Autoptimize plugin caused the conflict.

    in reply to: iCal for all future events #969226
    Honey Shelton
    Participant

    Yes, that will definitely help but my php knowledge is limited to editing some woocommerce account page files to make them look differently. Do I add this to WP’s functions.php or to one of The Event Calendar .php files?
    Can I add this to a php file in our child theme that would get loaded in addition to the core files?

    This is what I think I need to add.

    add_action( 'pre_get_posts', 'full_ical_export' );
    
    function full_ical_export( WP_Query $query ) {
    if ( ! isset( $_GET['ical'] ) || ! isset( $_GET['full-export'] ) ) return;
    if ( ! isset( $query->tribe_is_event_query ) || ! $query->tribe_is_event_query ) return;
    
    $query->set( 'eventDisplay', 'custom' );
    $query->set( 'start_date', 'now′ );
    $query->set( 'end_date', '3000-01-01′ );
    $query->set( 'posts_per_page', '-1′ );
    }
    in reply to: Event list in a div frame #496328
    Honey Shelton
    Participant

    This solution worked!
    Thanks

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