• Resolved Simone Montanari

    (@semikola)


    Hi there,

    I have an issue with the episodes’ thumbnails not showing in the HTML5 media player on the podcast page.

    The cause is that my theme doesn’t use a square thumbnail, in Media ? Thumbnail size the values are 400 and 300 (due to a design choice).

    I attempted the following solutions, with no success.

    1. Using the ssp_frontend_context_thumbnail_size filter

    In my functions.php theme I added:

    function basic_setup() {
       // Custom image sizes.
       add_image_size( 'square', 600, 600, true );
    }
    add_action( 'after_setup_theme', 'basic_setup' );
    
    /**
     * Seriously Simple Podcasting.
     */
    function custom_podcast_image_size() {
    
       $size = 'square';
    
       return $size;
    }
    add_filter( 'ssp_frontend_context_thumbnail_size', 'custom_podcast_image_size', 100 );

    2. Declaring a square post-thumbnail size

    Again in my functions.php file:

    function basic_setup() {
            
       // Post Thumbnail Support.
       add_theme_support( 'post-thumbnail' );
       set_post_thumbnail_size( 600, 600, true );
    		
    }
    add_action( 'after_setup_theme', 'basic_setup' );

    After every change I regenerated the thumbnails, but I still can get it to work.

    Am I missing something?

    Thanks for any help or suggestion,

    Simone

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @semikola,

    You can try to change the player image URL with the following snippet:

    add_filter( 'ssp_html_player_data', function ( $data ) {
            $size = 'medium';
    	$episode_repository = ssp_app()->get_service( 'episode_repository' );
    	$data['album_art']  = $episode_repository->get_album_art( $data['episode_id'], $size );
    	return $data;
    } );

    You can change $size to any size you’d like, for example, the ‘square’ one that you already registered with your code.

    Hope this helps and best regards,
    Sergiy.

    Thread Starter Simone Montanari

    (@semikola)

    Thank you @zahardoc, it worked!

    Have a nice day,
    Simone

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Thank you for letting me know, I’m glad you managed to fix it!

    Best regards,
    Sergiy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Episode Image doesn’t appear in player’ is closed to new replies.