Home › Forums › Calendar Products › Events Calendar PRO › export to download
- This topic has 10 replies, 2 voices, and was last updated 11 years, 7 months ago by
Josh.
-
AuthorPosts
-
September 8, 2014 at 6:45 pm #731906
magpivo
Participanthow do i change the button below the calendar from export to download? thanks
September 9, 2014 at 5:50 pm #734144Josh
ParticipantHello 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!
September 10, 2014 at 6:59 pm #736529magpivo
ParticipantOk, 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?
September 10, 2014 at 7:45 pm #736595magpivo
Participantok, i found that folder in your free plugin (not pro version), but I cannot find the Export Week’s, ugh…please help:)
September 12, 2014 at 9:40 am #740171magpivo
Participanthello…:)
September 12, 2014 at 9:41 am #740175magpivo
Participantwhere do i chance the “export” to “download” please.
September 12, 2014 at 4:40 pm #740783Josh
ParticipantHello 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.phpfile. When adding, be sure to add immediately after the opening<?phpat 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!
September 12, 2014 at 7:29 pm #740988magpivo
Participantthank 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). thanksSeptember 15, 2014 at 10:05 am #744903Josh
ParticipantHello 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!
September 18, 2014 at 9:30 am #750848magpivo
Participantthanks this works!
September 18, 2014 at 8:20 pm #752018Josh
ParticipantHello 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!
-
AuthorPosts
- The topic ‘export to download’ is closed to new replies.
