Support

Home Forums Event Espresso Premium Upcoming events page displayed as "Archives: Events"

Upcoming events page displayed as "Archives: Events"

Posted: August 30, 2017 at 2:33 pm

Viewing 8 reply threads


erika@pro-train.org

August 30, 2017 at 2:33 pm

Hi
I am using EE4 and the Upcoming Events page displays as “Archives: Events” at the top of the page. How can I remove that?
Thanks . . . Erika.


Tony

  • Support Staff

August 30, 2017 at 3:13 pm

Hi there,

That title is controlled by your theme, the event list is an archive of EE event post types and your theme adds that heading for archives.

Is there somewhere we can download a copy of the theme? If there is a hook within the theme that sets that up we can provide some code to fix it for you, however you may need to create a custom theme template file to fix this.


Golieguy64

September 4, 2017 at 5:25 pm

I have the same issue using the standard Twenty Seventeen theme (http://thekennettkitchen.com/events/). Very misleading for folks trying to sign up for classes so I would like to rename it! Thanks!


Tony

  • Support Staff

September 5, 2017 at 3:19 am

Hi there

Twenty Seventeen uses the core function the_archive_title().

For that, you can add this function: https://gist.github.com/Pebblo/8354c1cf76f1c48056b35d4378ad1611

To a Custom Functions Plugin on your site and that will remove the ‘Archives: ‘ text for EE events and Venues.

That may also work for the above user but it depends on how the theme is outputting the title.


erika@pro-train.org

September 7, 2017 at 10:28 pm

Hi Tony
thank you very much for your advice.
Since I am new to all of this I would like to make sure I understand this correctly.
1. I need to create a custom plug-in on my website. This can be done by following the instructions that can be found at “Custom Functions Plugin” link you provided above.

2. Paste the code that can be found at the “https://gist.github.com/Pebblo/8354c1cf76f1c48056b35d4378ad1611” link

The other question I have is about the theme. You mentioned that this would work for “Twenty Seventeen”. Are you talking about the “Twenty Seventeen” wordpress theme? If yes, I actually don’t use that theme. I use D5Creation’s “Simplicity Elite” theme. Would your suggestion still be the correct fix?

Thanks . . . Erika.


Tony

  • Support Staff

September 8, 2017 at 2:13 am

Yes, those are the correct steps.

Take note of the warning about the<?php tag, the plugin will already have an opening PHP tag if you follow the tutorial. We have to add the tag on the snippets to show that it is PHP.

However…

The other question I have is about the theme. You mentioned that this would work for “Twenty Seventeen”. Are you talking about the “Twenty Seventeen” wordpress theme? If yes, I actually don’t use that theme. I use D5Creation’s “Simplicity Elite” theme. Would your suggestion still be the correct fix?

Yes, I am referring to the Twenty Seventeen WP theme.

I can’t say for sure if it will work with your theme, I’d need to look at the code to see. If you’d like to send me a copy of the zip file for the theme I can check, you will need to host the file on something like Dropbox and post the link for me to download it from.


erika@pro-train.org

September 14, 2017 at 10:16 am

Hi Tony
sorry for the late response. I’ve been really swamped. I will work on making the zip file of my theme available to you but it may take a couple of days before I can get to it.
Thanks fo ryour help and patience . . . Erika.


erika@pro-train.org

September 14, 2017 at 10:16 am

Hi Tony
sorry for the late response. I’ve been really swamped. I will work on making the zip file of my theme available to you but it may take a couple of days before I can get to it.
Thanks for your help and patience . . . Erika.


Josh

  • Support Staff

September 14, 2017 at 10:44 am

Hi Erika,

Another approach you could take to remove the Archive page title that’s added by the theme is you hide it by using some CSS. You can change this by going to the Appearance -> Customize section of the admin, and there is a tab labeled ‘Additional CSS’. If you go into the customizer, you can add some code like this to hide the archive page title. Please paste the code between the dashed lines into the stylesheet:

—————————————-

.post-type-archive-espresso_events .page-title {
display:none;
}

—————————————-

Please refer to this guide for more detailed information about the CSS customizer: https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress

Viewing 8 reply threads

The support post ‘Upcoming events page displayed as "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