• Resolved eswe

    (@eswe)


    I have changed the permalink for all events under Settings/General. When I call up the calendar, the text of the permalink should appear as page title. But it says “Events” – only translated into German. How can I change this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @eswe ,

    Thank you for reaching out.

    To help us better understand the situation, could you please share the direct URL to the page you’re having issues with? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.

    Thread Starter eswe

    (@eswe)

    Hello @tristan083,
    thanks for the response. There is no link, but I am happy to describe it again in a different way. Under “Dashboard – Events – Settings” I can change the permalink for the calendar under “Viewing”. I’ve changed it to “termine” ( in english “appointments”).

    When I call up the calendar, the page shows me the page-header-title “Veranstaltungen”. This is the translation for events. But the permalink says url/termine/. However, I would like “Termine” to be displayed as page-header-title.

    I use oceanwp. Does this describe my problem better? Where does the calendar get the page-header-title from?

    Thanks in advance for help…

    Plugin Support tristan083

    (@tristan083)

    Hi @eswe ,

    Thank you for your message and the clarification.

    By default, the calendar (archive) page isn’t supposed to display any title, but some themes does take the “Events” (or its translation), and place it as a title of the page with its header. The permalink text has no bearing over the calendar page’s title, by design. But, just to make sure, you are not referring to the meta title, yes?

    If you are, however, referring to the meta title, the following guide may help in changing the meta title.

    Change the Meta Title for Calendar Views

    Thread Starter eswe

    (@eswe)

    Hallo?@tristan083,

    no, it’s not about the meta titles. Do you know where I would have to change something so that “Events” is not translated but I can enter “Termine” directly so that the page name appears correctly?

    Plugin Support tristan083

    (@tristan083)

    Hi @eswe ,

    Thank you for your message and the confirmation.

    The recommendations outlined in the following knowledgebase article might be of interest to you.

    The Calendar Page is Showing the Event Title

    Thread Starter eswe

    (@eswe)

    Thank you for trying to help me. I am apparently not capable enough to understand the help. Thought it would be easier…

    Plugin Support tristan083

    (@tristan083)

    Hi @eswe ,

    Thank you for your message.

    Kindly try appending the following custom snippet to your theme’s functions.php file, and see if this works for you.

    add_filter('tribe_get_events_title', 'my_get_events_title');
    function my_get_events_title($title) {
    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    return 'Termine';
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    return 'Events Calendar' . ' » ' . single_term_title('', false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    return 'Termine';
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    return get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    return 'Events on: ' . date('F j, Y', strtotime($wp_query->query_vars['eventDate']));
    } elseif( tribe_is_venue() ) { // Single Venues
    return $title;
    } else {
    return $title;
    }
    }
    Thread Starter eswe

    (@eswe)

    Thank you for trying again. The code changes the meta title. The “page-header-title” is still the translation of “Events”

    In which folder is the file responsible for this and what is it called?
    ../wp-content/plugins/the-events-calendar/src/views/v2 …

    Plugin Support tristan083

    (@tristan083)

    Hi @eswe ,

    Thank you for your message.

    As previously mentioned, the calendar (archive) page isn’t supposed to display any title by default, but some themes does take the “Events” (or its translation), and place it as a title of the page with its header.

    In that regard, have you tried reaching out to your theme’s support to see if they have a way to modify the “page-header-title”?

    Thread Starter eswe

    (@eswe)

    // Alter Blog Title
    function my_alter_page_header_title( $title ) {

    // Change the posts title to their actual title
    if ( is_singular( 'post') || is_category() || is_tag() ) {
    $title = 'My Blog Title';
    }

    // Return the title
    return $title;

    }
    add_filter( 'ocean_title', 'my_alter_page_header_title', 20 );

    good idea. found the code above. how would I have to adjust “if ( is_singular( ‘post’) || is_category() || is_tag() )” to give the archive page a different title?

    Thread Starter eswe

    (@eswe)

    I was helped. Thanks to @skalanter. Here is the code…

    // Alter Events Archive Page Title
    function my_alter_page_header_title( $title ) {

    // Check if it's the Events Calendar archive page
    if ( function_exists( 'tribe_is_event' ) && tribe_is_event() ) {
    $title = 'Termine'; // Replace with your desired title
    }

    // Return the title
    return $title;
    }
    add_filter( 'ocean_title', 'my_alter_page_header_title', 20 );
Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.