Need help with JS code.

We just want to remove this "-" with " " from here:
https://monosnap.com/file/Vxq1zYC6CtM1vB3y7jGEw9h5ydjYXK
http://sffallshow.*****jmontoro.com/schedule/

And for all single session page as well.
https://monosnap.com/file/LyuWB2ADKWBkic29Aiq0B8hZX5oGii
Please help.

  • Ash

    Hello Sarah

    Please try the following js:
    For Schedule Page:

    jQuery( document ).ready(function($) {
    setTimeout( function() {
    jQuery(".schedule-single .time").html(function () {
    var html = jQuery(this).html();
    var newhtml = html.split(' - ').join(' ');
    return newhtml;
    });
    }, 500);
    });

    For single session page:

    jQuery( document ).ready(function($) {
    setTimeout( function() {
    jQuery(".single-session .session-meta .hour").html(function () {
    var html = jQuery(this).html();
    var newhtml = html.split(' - ').join(' ');
    return newhtml;
    });
    }, 1000);
    });

    Hope it helps! Have a nice day :slight_smile:

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.