• Resolved George M

    (@plan9)


    I would like to use this plugin to list courses and training sessions. The words ‘event’ and ‘events’ is not really appropriate.

    Is there any way to override / replace the word(s) with something else – like ‘course’ ‘courses’.

    It would be great if the URLs could also be adapted.

    Thanks in advance for any info.

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    for the URL, Events > Settings > Pages > Permalink Slugs

    For events translation to course, you can try something like this in your theme functions.php

    //Rewrite any gettext field
    function my_em_text_rewrites($translation, $orig, $domain) {
    	switch ($orig) {
    		case 'Event' :
    			$translation = 'Course';
    			break;
    		case 'Events' :
    			$translation = 'Courses';
    			break;
    //repeat for each plural/single you need to replace
    	}
    	return $translation;
    }
    add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );
    Thread Starter George M

    (@plan9)

    Thank you – your suggestion worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the word 'Events' to 'Courses' or anything else.’ is closed to new replies.