WordPress.org

Ready to get started?Download WordPress

Forums

Video Thumbnails
[resolved] Custom Thumbnail when none detected (2 posts)

  1. bforbest
    Member
    Posted 1 year ago #

    Hi!
    And thanx for the great plugin.
    Is there anyway i could show a custom thumbnail from directory on local server when a thumbnail is not generated?

    http://wordpress.org/extend/plugins/video-thumbnails/

  2. Pete
    Member
    Posted 1 year ago #

    This is explained on the plugins home page, the function below as it says will echo a thumbnail URL or the default image located at wp-content/plugins/video-thumbnails/default.jpg if a thumbnail cannot be found. So replace that image with your custom image. Use the code below, when a thumbnail is not found it will show your image.

    <?php video_thumbnail(); ?> will echo a thumbnail URL or the default image located at wp-content/plugins/video-thumbnails/default.jpg if a thumbnail cannot be found. Here is an example: <img src="<?php video_thumbnail(); ?>" width="300" />

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.