Support

Home Forums Event Espresso Premium Page Title reads Archives: Events

Page Title reads Archives: Events

Posted: June 15, 2018 at 8:00 am

Viewing 1 reply thread


SevenSigma

June 15, 2018 at 8:00 am

Hi

The title of my Events page reads Archives: Events. How do I change it to say Upcoming Events?

Cheers,
terrie


Josh

  • Support Staff

June 15, 2018 at 8:26 am

Hi Terrie,

It looks like your site has the Bizlight WordPress theme, so you’d add the following code to make that change (and change the Venues page too):

function bizlight_theme_ee_archive_title( $title ) {
    if ( is_post_type_archive('espresso_events') ) {
        $title = 'Upcoming Events';
    } elseif ( is_post_type_archive('espresso_venues') ) {
        $title = 'Locations';
    }
    return $title;
}
add_filter( 'get_the_archive_title', 'bizlight_theme_ee_archive_title' );

You can add the above to a functions plugin or into a WordPress child theme’s functions.php file.

Viewing 1 reply thread

The support post ‘Page Title reads Archives: Events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso