Support

Home Forums Event Espresso Premium change words "Events Archive"

change words "Events Archive"

Posted: September 25, 2015 at 2:30 pm

Viewing 4 reply threads


Jennifer Bublitz

September 25, 2015 at 2:30 pm

The top of my page says “Events Archive”. How can I change that wording?


Josh

  • Support Staff

September 25, 2015 at 4:03 pm

Hi Jennifer,

Since “Events Archive” isn’t a string that Event Espresso normally outputs anywhere, this might be something your theme is adding. Is there a place we can download a copy of the WordPress you’re using so we can investigate further?


Josh

  • Support Staff

September 25, 2015 at 6:43 pm

Update: Garth astutely pointed out to me that your site has the Canvas theme, and I happen to have a copy of Canvas! So that’s something that can be changed via a small function added to your child theme’s functions.php files.

For example, if you want to change it to say “Upcoming Events”, your code will be this:

add_filter( 'woo_archive_title', 'my_custom_event_archive_title', 10, 3 );
function my_custom_event_archive_title( $title, $before, $after ) {
    if ( is_post_type_archive( 'espresso_events') ) {
        $title = $before . 'Upcoming Events' . $after;
    }
    return $title;
}


Jennifer Bublitz

September 28, 2015 at 12:50 pm

You are awesome! Thank you!!!


Josh

  • Support Staff

September 28, 2015 at 1:23 pm

You’re welcome.

Viewing 4 reply threads

The support post ‘change words "Events Archive"’ 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