how can I edit the 'Who can enroll' text

Hi there,

When you view Courses on the actual website, there's text 'Who can enroll:'

This shows the the options Anyone.......

I need to edit the 'Anyone' option, so it's Anyone (18 years or older)

I already tried editing the .po files with POEDIT, but it doesn't work.

How can I do this?

Thank you

  • Ash
    • WordPress Hacker

    Hello @Tony

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    When you edited the po file, did you select the language from Settings > General? And used the same lang code in po file name?

    The easiest way is to use the following code. Please try the code in your theme's footer.php after wp_footer():

    <script type="text/javascript">
    jQuery(function($) {
      $('.course-enrollment-type').html( $('.course-enrollment-type').html().replace('Anyone', 'Anyone (18 years or older)') );
    });
    </script>

    This highly recommended to use a child theme in this case, as the changes will be lost when you will update the theme. You can learn more about child theme here: http://codex.wordpress.org/Child_Themes

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.