Support

Home Forums Event Espresso Premium Change Upcoming Events to Upcoming Classes

Change Upcoming Events to Upcoming Classes

Posted: September 14, 2017 at 5:18 pm

Viewing 6 reply threads


Bob Randklev

September 14, 2017 at 5:18 pm

I swear we changed this before but I can’t find the code in my functions.php or is there an easier way now?


Josh

  • Support Staff

September 14, 2017 at 5:53 pm

Hi Bob,

May I ask where on your site are you looking to change this? Can you share a URL to the page that has the “Upcoming Events” text?


Bob Randklev

September 14, 2017 at 7:01 pm

??? above the shortcode on an page like
https://streetsmartsdriversed.com/iowa/marion/indian-creek-ind-classes/


Josh

  • Support Staff

September 14, 2017 at 7:53 pm

Hi Bob,

You can change the default text by adding a shortcode parameter.

e.g. [ESPRESSO_EVENTS title='Upcoming Classes']


Bob Randklev

September 14, 2017 at 7:54 pm

We have close to 60 pages with shortcode, can we add code to functions.php?


Josh

  • Support Staff

September 14, 2017 at 8:03 pm

Yes you can, although you will lose your changes everytime you update your theme, (which might be why you can’t find the code if you made the change before).

To avoid this, we recommend adding code for customizations into a functions plugin.

Here’s an example of some code that will also change the title that appears at the top of the event list shortcode output:

add_action(
  'FHEE__archive_espresso_events_template__upcoming_events_h1',
  function(){return 'Upcoming Classes';}
);


Bob Randklev

September 18, 2017 at 5:52 pm

Thanks that worked perfectly

Viewing 6 reply threads

The support post ‘Change Upcoming Events to Upcoming Classes’ 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