Using the Agency theme, is there any way (besides using a GIF) to play a video as the portfolio "featured image"? I know video is supported in the portfolio gallery but the featured image selection does not allow video. I've looked at the docs but find no specific reference to videos as featured images. This would be such an awesome feature!!!
I'm experienced with HTML5, CSS3, js, and php and have previously done tricks with other themes such as adding js snippets of HTML5 self-hosted video into the DOM at runtime. However I'd like to hear your thoughts before attempting this sort of trickery. Thanks
We haven't implemented this functionality yet, featured image as videos can be added only as GIF for now. We are planning to add this feature but requires some time because of the layout of portfolio items we have.
A way to custom include videos for portfolio items is by adding a function/hook:
function kalium_portfolio_item_after_video_implementation() {
// The code for video
}
add_action( 'kalium_portfolio_item_after', 'kalium_portfolio_item_after_video_implementation' );
However it requires a bit of custom coding. Adding a video from featured image can be done with shortcode:
Using the Agency theme, is there any way (besides using a GIF) to play a video as the portfolio "featured image"? I know video is supported in the portfolio gallery but the featured image selection does not allow video. I've looked at the docs but find no specific reference to videos as featured images. This would be such an awesome feature!!!
I'm experienced with HTML5, CSS3, js, and php and have previously done tricks with other themes such as adding js snippets of HTML5 self-hosted video into the DOM at runtime. However I'd like to hear your thoughts before attempting this sort of trickery. Thanks
Hi jefrey1f,
We haven't implemented this functionality yet, featured image as videos can be added only as GIF for now. We are planning to add this feature but requires some time because of the layout of portfolio items we have.
A way to custom include videos for portfolio items is by adding a function/hook:
However it requires a bit of custom coding. Adding a video from featured image can be done with shortcode: And then styling it for that particular item that has a video.I hope this will help you.
Awesome. Thank you for the fast reply and providing the right direction for me. That’s exactly what I was looking for. You guys are the best.
Happy to hear that
Will mark this ticket as solved from here.