Tagged: events calendar
HI
I changed the events calendar “previous events” text when I built my site, but now I can’t find where that change was made!
I am using a child theme. I added some text to the top (BEGIVENHEDER) but want to change the SENESTE AFSLUTTEDE BEGIVENHEDER text.
Can you see where the change was made? I checked the functions.php and single-event.php files but didn’t see it there.
thanks
Nancy
Hey Munford,
Thank you for your patience, it looks like you added the BEGIVENHEDER text in the events calendar ▸ settings ▸ display
But I didn’t find any option or custom snippet that adds the SENESTE AFSLUTTEDE BEGIVENHEDER
So to change this try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.tribe-events-calendar-latest-past__heading.tribe-common-h5.tribe-common-h3--min-medium {
opacity: 0;
}
and add this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_change_text_script() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($) {
$(document).ready(function() {
var targetElement = $(".tribe-events-calendar-latest-past__heading.tribe-common-h5.tribe-common-h3--min-medium");
if (targetElement.length) {
targetElement.text("NEW TEXT HERE");
targetElement.css("opacity", "1");
}
});
})(jQuery);
});
</script>
<?php
}
add_action( 'wp_footer', 'custom_change_text_script', 99 );
Then in the code above change NEW TEXT HERE to your new text.
Best regards,
Mike
thanks – that worked!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike