Hi everybody,
the Events Calendar plugin (German version) creates the calender page automatically, however there is a typo in the automatically created H1 on the calendar page and I do not know how to fix this… it says “Kalender mit Ereignissem” but the correct spelling would be “Kalender mit Ereignissen”.
Is it maybe possible to modify the H1 entirely?
Thanks and kind regards
Hey ual84,
Sorry for the late reply, Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
(function($){
$(document).ready(function(){
$("h1.main-title.entry-title").text("Kalender mit Ereignissen");
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
Best regards,
Mike
Hi Mike,
thanks for your answer, the code works, but it changes alle the H1s on the whole website.
I just need to change the title on the calendar main page – https://www.mv-stveit-triesting.at/termine/ – just the one ;) Is there a way to do that?
Thanks and best regards
Hi,
Please try this instead:
function custom_script(){
?>
<script>
(function($){
$(document).ready(function(){
$("#top.post-type-archive-tribe_events h1.main-title.entry-title").text("Kalender mit Ereignissen");
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
Best regards,
Mike
That did it! Thank you very much!
Best Regards
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Please bookmark Enfold Documentation for future reference.
Thank you for using Enfold :)
Best regards,
Basilis