Please open the file “wp-content/themes/fudge/functions.php”
Find out the below listed code. Probably from line number 1304 to 1346
function fudge_ajax_get_speakers() {
$ret = array(
‘page’ => 1,
‘speakers’ => array(),
‘more’ => 0,
‘limit’ => 1
);
$page = isset($_POST[‘data-page’]) && ctype_digit($_POST[‘data-page’]) ? intval($_POST[‘data-page’]) : ‘1’;
$speakers_limit = isset($_POST[‘data-limit’]) && ctype_digit($_POST[‘data-limit’]) ? intval($_POST[‘data-limit’]) : get_speakers_limit();
$speakers_loop_args = array(
‘post_type’ => ‘speaker’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => $speakers_limit,
‘paged’ => $page,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’
);
$speakers_loop = new WP_Query($speakers_loop_args);
while ($speakers_loop->have_posts()) {
$speakers_loop->the_post();
$short_bio = get_post_meta(get_the_ID(), ‘short_bio’, true);
if (mb_strlen($short_bio, ‘UTF-8’) > 50)
$short_bio = substr($short_bio, 0, 50) . ‘…’;
$ret[‘speakers’][] = array(
‘post_ID’ => get_the_ID(),
‘post_title’ => get_the_title(),
‘post_image’ => get_the_post_thumbnail(get_the_ID()),
‘post_company’ => get_post_meta(get_the_ID(), ‘company’, true),
‘post_short_bio’ => $short_bio,
);
}
$ret[‘page’] = $page;
if ($speakers_loop->found_posts > $page * $speakers_limit)
$ret[‘more’] = 1;
echo json_encode($ret);
die;
}
From this find out the the below code
$ret[‘speakers’][] = array(
‘post_ID’ => get_the_ID(),
‘post_title’ => get_the_title(),
‘post_image’ => get_the_post_thumbnail(get_the_ID()),
‘post_company’ => get_post_meta(get_the_ID(), ‘company’, true),
‘post_short_bio’ => $short_bio,
);
Replace this with the following
$ret[‘speakers’][] = array(
‘post_ID’ => get_the_ID(),
‘post_title’ => get_the_title(),
‘post_image’ => get_the_post_thumbnail(get_the_ID()),
‘post_company’ => get_post_meta(get_the_ID(), ‘company’, true),
‘post_short_bio’ => $short_bio,
‘website_url’ => str_replace(‘http://’, ”, get_post_meta(get_the_ID(), ‘website_url’, true)),
);
Save the file.
Also replace the file “wp-content/themes/fudge/js/script.js” with the attached one.
This should remove your speaker pop-ups and add links to the corresponding websites
Please don’t forget to take a back up of files prior to any update.