You can add custom video icon, which will be displayed on video thumbnails, like the below:
If you want to add your custom thumbnail icon add a png image file to the wp-content/plugins/ct-woovideo/assets/images folder and add the following code to your functions.php file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
//add a new icon to your 'video settings' page add_filter('wc_ct_woovideo_icons' , 'add_woovideo_icon_setting', 1, 2); function add_woovideo_icon_setting($icons, $path){ $icons['new_icon'] = '<img src="' . $path . '/images/new_icon.png"/>'; return $icons; } //add a new icon to your 'edit product' page add_action('ct_woovideo_thumbnail_icons' , 'add_woovideo_icon_admin', 1, 3); function add_woovideo_icon_admin($loop, $video, $path){ ?> <label class="ct-woovideo-thumbnail-icon" for="ct-woovideo-select-icon7[<?php echo esc_attr($loop); ?>]"> <input type="radio" autocomplete="off" name="ct_woovideo_select_icon[<?php echo esc_attr($loop); ?>]" id="ct-woovideo-select-icon7[<?php echo esc_attr($loop); ?>]" class="ct-woovideo-select-icon" value="new_icon" <?php checked( $video['_thumbnail_icon'], 'new_icon' ); ?>/><img src="<?php echo $path ?>images/new_icon.png"/></label> <?php } |