Support

Home Forums Event Espresso Premium Events Title Landing Page

Events Title Landing Page

Posted: June 5, 2023 at 12:05 pm

Viewing 13 reply threads


Katelyn

June 5, 2023 at 12:05 pm

Is there a way I can change the title to the landing page of all events? Right now, it currently reads Events and I’d like it to be Live Courses.


Tony

  • Support Staff

June 5, 2023 at 3:46 pm

Hi there,

Do you mean the event slug or just the title?

Can you link me to the page or include a screenshot of the specific section you want to change, please?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Katelyn

June 11, 2023 at 3:18 pm

This reply has been marked as private.


Rio

  • Support Staff

June 11, 2023 at 6:13 pm

Hello,

You can create new Page, then add the shortcode you needed in that page.

Here’s the instruction.
https://eventespresso.com/wiki/ee4-shortcodes-template-variables/


Katelyn

June 29, 2023 at 10:22 am

Continued from: https://eventespresso.com/topic/events-title-landing-page/

I’ve created a new page with the correct slug, but it’s not formatted the same as the Events page. Any assistance would be greatly appreciated.


Tony

  • Support Staff

June 29, 2023 at 11:21 am

This reply has been marked as private.


Katelyn

June 29, 2023 at 11:23 am

This reply has been marked as private.


Tony

  • Support Staff

June 29, 2023 at 12:14 pm

This reply has been marked as private.


Katelyn

June 29, 2023 at 12:18 pm

Yes; that’s correct.


Tony

  • Support Staff

June 29, 2023 at 12:22 pm

Ok, so you’ll need a snippet like this:

https://gist.github.com/joshfeck/5244f2e9685b17013122cd2a81a7efa8

Set whatever title you want to use for your EE events on line 5

If you don’t want to change the title for Venues or People you can just remove those sections and have:

function my_theme_ee_archive_titles( $title ) {
    if ( is_post_type_archive('espresso_events') ) {
        $title = 'Live Courses';
    }
    return $title;
}
add_filter( 'get_the_archive_title', 'my_theme_ee_archive_titles' );

Add that to a custom functions plugin, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Katelyn

June 29, 2023 at 1:54 pm

This reply has been marked as private.


Tony

  • Support Staff

June 29, 2023 at 2:16 pm

Hmm, then that means your theme isn’t using the_archive_title()

Within your theme (or child theme) do you have an archive-espresso_events.php template file?


Katelyn

June 30, 2023 at 10:37 am

No, it does not.


Katelyn

June 30, 2023 at 10:39 am

Okay; I apologize. I had Archive title turned off, so it was pulling in something else. It’s working now.


Tony

  • Support Staff

June 30, 2023 at 12:08 pm

Awesome, I’m glad its worked for you.

Viewing 13 reply threads

The support post ‘Events Title Landing Page’ 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