Support

Home Forums Event Espresso Premium Change Event Table Heading Names

Change Event Table Heading Names

Posted: July 7, 2018 at 7:31 pm


baystate

July 7, 2018 at 7:31 pm

Hi,
On the events table list I’d like to change the Name of the ‘Event’ column to ‘Class’ and the ‘Date’ heading to ‘Date of First Lesson’.

Can I do this with a custom function?

Thank you!


Tony

  • Support Staff

July 9, 2018 at 3:48 am

Hi there,

I’m assuming this is using the event table template, correct? – https://eventespresso.com/product/eea-events-table-view-template/

If so you can translate those strings with a custom function but you’ll need a little hoop-jumping to only translate it on that page.

An easier method for that table will be to copy the template used for the table into a child theme and alter the string in the template, EE will then use a copy of the template from your theme in place of the original.

So if you copy eea-events-table-template\templates\espresso-events-table-template.template.php into your theme and change line 45 from:

<th class="th-group"><?php _e('Event','event_espresso'); ?></th>

to

<th class="th-group"><?php _e('Class','event_espresso'); ?></th>

and line 49, from:

<th class="th-group"><?php _e('Date','event_espresso'); ?></th>

to

<th class="th-group"><?php _e('Date of First Lesson','event_espresso'); ?></th>

That will change the output for you.


baystate

July 9, 2018 at 8:23 am

Yes, that’s the one, apologies! That worked perfectly, thank you very much!

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  baystate 1 week, 6 days ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!