Tagged: events calendar
-
AuthorPosts
-
July 23, 2024 at 12:24 pm #1462764
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
NancyJuly 27, 2024 at 1:18 pm #1463104Hey 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,
MikeAugust 16, 2024 at 12:59 pm #1464769thanks – that worked!
August 16, 2024 at 4:35 pm #1464786Hi,
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 -
AuthorPosts
- The topic ‘events calendar “previous events” text?’ is closed to new replies.
