Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1117859

    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

    #1118364

    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

    #1118491

    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

    #1118506

    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

    #1118508

    That did it! Thank you very much!

    Best Regards

    #1118589

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events Calendar Plugin – German Version H1 Typo’ is closed to new replies.