1) Please do remember to back-up the file prior to any changes.
2) Open wp-content/themes/conference-pro/event-framework/helpers/cpt/sessions.php
3) Please note this change as this is the parent theme file. You need to reapply this change whenever you update the theme.
4) Around line number 186, you an find:
‘url’ => get_permalink($speaker_id),
5) Please change this to:
‘url’ => get_permalink($speaker_id),
‘speaker_function’ => get_post_meta($speaker_id, ‘speaker_function’, true),
6) save the file.
7) Please open wp-content/themes/conference-pro-child/functions.php
8) Add the below code to the end of this file:
add_action(‘wp_print_scripts’, ‘conferenepro_child_customs_js’);
function conferenepro_child_customs_js(){
wp_dequeue_script(‘cpt-jquery-main’);
wp_register_script( ‘cpt-jquery-main-child1’, get_stylesheet_directory_uri() . ‘/assets/js/jquery.main.js’, array(
‘jquery’,
‘cpt-countdown’,
‘cpt-isotope’,
‘cpt-google-maps’,
‘cpt-nicescroll’,
‘cpt-swiper’,
‘cpt-select’,
‘cpt-youtubebackground’
), false, true);
wp_localize_script(‘cpt-jquery-main-child1’, ‘cptJS’, array(‘ajax_url’ => admin_url(‘admin-ajax.php’), ‘is_fe’ => ef_fe_vue_prop(true, false)));
wp_enqueue_script(‘cpt-jquery-main-child1’);
}
9) Copy wp-content/themes/conference-pro/assets/js/jquery.main.js to wp-content/themes/conference-pro-child/assets/js/
10) Open wp-content/themes/conference-pro-child/assets/js/query.main.js
11) Around line number 1034, you can find:
‘<h3 class=”schedule__speaker-name” v-bind:style=”styles.speaker_name” @click.prevent=”doEdit(‘speaker_name’, $event)” >’ + this.post_title + ‘</h3>’ +
‘</a>’;
12) Please change this to:
‘<h3 class=”schedule__speaker-name” v-bind:style=”styles.speaker_name” @click.prevent=”doEdit(‘speaker_name’, $event)” >’ + this.post_title + ‘</h3>’ +
‘<span>’+this.speaker_function+'</span></a>’;
13) Save the file.