-
AuthorPosts
-
April 24, 2024 at 12:50 pm #1440687
Hi,
the sam problem we solved in this thread https://kriesi.at/support/topic/events-calendar-plugin-german-version-h1-typo/#post-1117859
has come up again.Can you please fix this or tell me how to fix this permamently?
Thanks and best regards
April 24, 2024 at 12:51 pm #1440688The script that solved the problem is still there, I think it does not adress the tribe events H1 any more.
April 24, 2024 at 4:39 pm #1440696Hi,
We’re going to fix this issue in the upcoming version of Enfold.
For now, you can use the Loco Translate ( https://wordpress.org/plugins/loco-translate/ ) plugin to update this string in German language files included in Enfold.
Best regards,
YigitApril 26, 2024 at 9:52 am #1440928Hi,
thanks for the quick reply, I just can’t find the right section to translate in the language files…
We could also try the previous solution – the code your team provided last time still works (see below), it just does not adress the right H1 any more, so perhaps we just have to change this: #top.post-type-archive-tribe_events h1.main-title.entry-title
Just a guess…Thanks and best regards
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');
April 26, 2024 at 4:52 pm #1440992Hi,
I tried to review your previous thread, and the page posted doesn’t seem to show the error: Kalender mit Ereignissem
Kalender mit Ereignissen is the page H1 title.
It seems that the script solution is working correctly, is there a different page at you see the error on?Best regards,
MikeApril 29, 2024 at 11:50 am #1441290Hi,
seems to be just the pages showing single event details: https://www.mv-stveit-triesting.at/termine/stadtmarkt-berndorf/
Thanks and BestApril 29, 2024 at 12:22 pm #1441295Hi,
This is because the original solution was for archive pages, this is a single tribe event page, for this add this code to the end of your child theme functions.php file in Appearance ▸ Editor and keep the other code:function custom_single_tribe_events_script(){ ?> <script> (function($){ $(document).ready(function(){ $("#top.single-tribe_events h1.main-title.entry-title").text("Kalender mit Ereignissen"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_single_tribe_events_script');
Best regards,
MikeApril 29, 2024 at 1:17 pm #1441302Thanks, that did it!
Best regards
April 29, 2024 at 5:28 pm #1441320Hi,
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 Plugin – German Version H1 Typo is back’ is closed to new replies.