Fudge2

  1. Home
  2. Docs
  3. Fudge2
  4. Frequently Asked Questions
  5. How do I change the name on Sessions for i.e. Classes ?

How do I change the name on Sessions for i.e. Classes ?

You can change it in the core file. You need to reapply this change when you upgrade.

1) Please do remember to back-up the file prior to any changes.

2) Open wp-content/themes/fudge-2/event-framework/components/cpts/session.php

3) Around line number 3, you can find:

‘labels’ => array (
‘name’ => __( ‘Sessions’, ‘dxef’ ),
‘singular_name’ => __( ‘Session’, ‘dxef’ ),
‘add_new’ => __( ‘Add New’, ‘dxef’ ),
‘add_new_item’ => __( ‘Add New Session’, ‘dxef’ ),
‘edit_item’ => __( ‘Edit Session’, ‘dxef’ ),
‘new_item’ => __( ‘New Session’, ‘dxef’ ),
‘view_item’ => __( ‘View Session’, ‘dxef’ ),
‘search_items’ => __( ‘Search Sessions’, ‘dxef’ ),
‘not_found’ => __( ‘No Sessions found’, ‘dxef’ ),
‘not_found_in_trash’ => __( ‘No Sessions found in trash’, ‘dxef’ ),
‘menu_name’ => __( ‘Sessions’, ‘dxef’ )
),

4) Please change this with:

‘labels’ => array (
‘name’ => __( ‘Classes’, ‘dxef’ ),
‘singular_name’ => __( ‘Class’, ‘dxef’ ),
‘add_new’ => __( ‘Add New’, ‘dxef’ ),
‘add_new_item’ => __( ‘Add New Class’, ‘dxef’ ),
‘edit_item’ => __( ‘Edit Class’, ‘dxef’ ),
‘new_item’ => __( ‘New Class’, ‘dxef’ ),
‘view_item’ => __( ‘View Class’, ‘dxef’ ),
‘search_items’ => __( ‘Search Classes’, ‘dxef’ ),
‘not_found’ => __( ‘No Classes found’, ‘dxef’ ),
‘not_found_in_trash’ => __( ‘No Class found in trash’, ‘dxef’ ),
‘menu_name’ => __( ‘Classes’, ‘dxef’ )
),

5) Save the file.

Please do the change carefully as this is the core file.

Was this article helpful to you? Yes No