Archived topic
How to remplace the main image by a video?
8 replies · Started by Stephane on July 13, 2020
Hello
Is it possible to remplace the main picture on a article by a video?
I tried on changing the type of post (standard by video, without success).
Best regards
Stef
Hi there,
will every post require a different video ?
Hello David
Yes. I would like to create 50 posts with 50 different videos (and display the video instead of the main image).
The simplest method would be to disable the Header Element on your posts and the featured image. And simply add a Video block to the top of your posts.
I tried, however the elements stay.
The site is using a Header Element:
https://docs.generatepress.com/article/header-element-overview/
in Appearance > Elements you will need to edit the Single Post header element. And change its Display Rules to EXCLUDE that post. I would suggest using a Tag to identify the Video posts, then you can exclude the Post Tag
Right.
Do you know that your are the best David?
Thanks a lot for your support. The best that I have had ever seen 🏅
Last question.
Is it possible to have a 100% width on a specific category ? e.g, here I would like that the content (video & text take all the width)
Maybe the Layout Element will help?
https://docs.generatepress.com/article/layout-element-overview/
You can disable elements such as sidebars, set the content width etc.