Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8412

    Is there a way to get a thumbnail for a post that has a external video linked. I have tried uploading an image and setting it as featured though the media panel. That process works fine for posts without the youtube video. Adding a second item under the slideshow did not work either.

    #61325

    Hey,

    I’m sorry but a fallback image is not supported at the moment. However if you’re familiar with css you can modify the widget class and include a fallback image or function with fetches additional featured images. The code can be found in propulsionframeworkphpclass-framework-widgets.php :

    $slides = avia_post_meta(get_the_ID(), 'slideshow');

    if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) )
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    }

    #61326

    In compat.php

    line 20

    delete_post_meta($post_id, '_thumbnail_id');

    kills the featured image disallowing a fallback for the video file. I commented out this line, and I can now set a featured image so a thumbnail will appear when I’m using a video in the slideshow.

    This does not appear to have adverse repercussions.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘newsbox widget post thumbnail’ is closed to new replies.