Home › Forums › Calendar Products › Events Calendar PRO › export to download
- This topic has 10 replies, 2 voices, and was last updated 9 years, 7 months ago by Josh.
-
AuthorPosts
-
September 8, 2014 at 6:45 pm #731906magpivoParticipant
how do i change the button below the calendar from export to download? thanks
September 9, 2014 at 5:50 pm #734144JoshParticipantHello 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 #736529magpivoParticipantOk, 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 #736595magpivoParticipantok, 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 #740171magpivoParticipanthello…:)
September 12, 2014 at 9:41 am #740175magpivoParticipantwhere do i chance the “export” to “download” please.
September 12, 2014 at 4:40 pm #740783JoshParticipantHello 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!
September 12, 2014 at 7:29 pm #740988magpivoParticipantthank 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 #744903JoshParticipantHello 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 #750848magpivoParticipantthanks this works!
September 18, 2014 at 8:20 pm #752018JoshParticipantHello 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.