• Any chance of an upcoming plugin update or paid version where we can replace the text “Sorry, there’s no live stream at the moment. Please check back later or take a look at all our videos.” when there is no video (we are only using live videos) with an image?

    Tx!

Viewing 1 replies (of 1 total)
  • Plugin Author macbookandrew

    (@macbookandrew)

    You can already with a filter in your functions.php file:

    
    add_filter( 'wp_youtube_live_no_stream_available', 'my_ytl_custom_message' );
    function my_ytl_custom_message( $message ) {
        $message = '<p><a target="_blank" href="https://youtube.com/channel/' . $youtube_options['youtube_live_channel_id'] . '"><img src="path-to-your-image-here…" alt="' . get_bloginfo( 'name' ) . ' YouTube Live Stream" /></a>.</p>
        <p><button type="button" class="button" id="check-again">Check again</button><span class="spinner" style="display:none;"></span></p>';
        return $message;
    }
    

    Modify as you see fit.

Viewing 1 replies (of 1 total)
  • The topic ‘Replace text’ is closed to new replies.