• Resolved hejjab

    (@hejjab)


    Hi!

    How can I modify the title “Összes Események” to “Összes Esemény” ?

    Thanks!

    • This topic was modified 6 years, 9 months ago by hejjab.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @hejjab!

    We actually have a snippet that would allow you to change the wording of any bit of text or string: https://support.theeventscalendar.com/178892-Change-the-wording-of-any-bit-of-text-or-string

    To change “All events”, you could do it this way:
    $custom_text = array(
    ‘All %s’ => ‘Összes Esemény’,
    );

    Let us know how it goes 🙂

    Cheers,
    Jeremy

    Thread Starter hejjab

    (@hejjab)

    Hi Jeremy!

    Thank you, but unfortunately it not works.
    I use an own created child theme “twentytwelve footer”.
    This is my functions.php

    <?php
    $custom_text = array(
    ‘All %s’ => ‘Összes Esemény’,
    );
    function twentytwelvechild_widgets_init() { register_sidebar( array( ‘name’ => __( ‘Footer Widget Area’, ‘twentytwelvechild’ ),
    ‘id’ => ‘footer-sidebar’,
    ‘description’ => __( ‘Appears on the footer, which has its own widgets’, ‘twentytwelvechild’ ),
    ‘before_widget’ => ‘
    <div id=”%1$s” class=”widgetfooter”>’,
    ‘after_widget’ => ‘</div>
    ‘,
    ‘before_title’ => ‘
    <h3 class=”widget-title”>’,
    ‘after_title’ => ‘</h3>
    ‘,
    ) );
    }
    add_action( ‘widgets_init’, ‘twentytwelvechild_widgets_init’ );

    I use this array the main theme’s functions.php, but the result is the same.

    This is an example:
    https://kota.hu/esemeny/220-ev-220-hang-nemzetkozi-korustalalkozo/

    Cheers: Balázs

    Hi @hejjab!

    You actually need to copy/paste the whole snippet which is at the bottom of this page: https://support.theeventscalendar.com/178892-Change-the-wording-of-any-bit-of-text-or-string

    Then, you just need to change the following lines:
    $custom_text = array(
    ‘Venue’ => ‘Location’,
    ‘Related %s’ => ‘Similar %s’,
    );

    It should be:
    $custom_text = array(
    ‘All %s’ => ‘Összes Esemény’,
    );

    Let us know how it goes!
    Cheers,
    Jeremy

    Thread Starter hejjab

    (@hejjab)

    Hi!

    It not works, but I solved it:

    In the wp-content/plugins/the-events-calendar/lang folder, edited the following file:
    the_events_calendar_hu_HU.mo
    THis string:

    msgctxt “%s Event count in admin list”
    msgid “All %s”
    msgstr “További %s”

    msgctxt “%s Events plural label”
    msgid “All %s”
    msgstr “További %s”

    The “Összes” word changed to “További” so the link text is: “További események”

    Like this: https://kota.hu/esemeny/bardos-120/

    Thank you for your support 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘how to edit title’ is closed to new replies.