export to download

Home Forums Calendar Products Events Calendar PRO export to download

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #731906
    magpivo
    Participant

    how do i change the button below the calendar from export to download? thanks

    #734144
    Josh
    Participant

    Hello magpivo,

    Thanks for reaching out to us!

    You can use the “tribe_events_ical_export_text” filter to modify the text that is displayed within those buttons. You can see the source for that filter within the “lib” ->”tribe-ical.class.php” file within the core events calendar plugin files.

    This should get you pointed in the right direction for customizing that text. Let me know if this helps.

    Thanks!

    #736529
    magpivo
    Participant

    Ok, so I am in wordpress and I go to edit plugin area.i select calendar pro plugin and on my right are many folders (unfortunately not the one you mentioned). whichj one do I select to chanhe the “export” to “download” please?

    #736595
    magpivo
    Participant

    ok, i found that folder in your free plugin (not pro version), but I cannot find the Export Week’s, ugh…please help:)

    #740171
    magpivo
    Participant

    hello…:)

    #740175
    magpivo
    Participant

    where do i chance the “export” to “download” please.

    #740783
    Josh
    Participant

    Hello magpivo,

    Sorry for the delayed response.

    You can change that wording from “Export” to “Download” by adding the following snippet to your active theme’s functions.php file. When adding, be sure to add immediately after the opening <?php at the top or before the closing ?> at the bottom of the file.

    
    add_filter( 'tribe_events_ical_export_text', 'modify_ical_download_text' );
    /**
    * Filter the iCal download button text
    */
    function modify_ical_download_text() {
    $tec = TribeEvents::instance();
    
    $view = $tec->displaying;
    if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $wp_query->query_vars['eventDisplay'] ) )
    $view = $wp_query->query_vars['eventDisplay'];
    
    switch ( strtolower( $view ) ) {
    case 'month':
    $modifier = __( "Month's Events", "tribe-events-calendar" );
    break;
    case 'week':
    $modifier = __( "Week's Events", "tribe-events-calendar" );
    break;
    case 'day':
    $modifier = __( "Day's Events", "tribe-events-calendar" );
    break;
    default:
    $modifier = __( "Listed Events", "tribe-events-calendar" );
    break;
    }
    
    return 'Download ' . $modifier;
    }

    Let me know if you have any further questions.

    Thanks!

    #740988
    magpivo
    Participant

    thank you, i am not feeling comfortable with php functions, so if i decided to remove it the entire button, what would be the best way? (i tried this .tribe-events-button {
    display:none;
    }
    with no avail). thanks

    #744903
    Josh
    Participant

    Hello magpivo,

    Hiding it with CSS will work to get rid of the button. A quick option for hiding that button would be to use:

    
    .tribe-events-ical {
    display:none!important;
    }
    

    Thanks!

    #750848
    magpivo
    Participant

    thanks this works!

    #752018
    Josh
    Participant

    Hello magpivo,

    Happy to have been able to help!

    I’ll go ahead and close this ticket. If you have any further questions please don’t hesitate to open a new one.

    Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘export to download’ is closed to new replies.