Site logo

Archived topic

How to remplace the main image by a video?

8 replies · Started by Stephane on July 13, 2020

Viewing posts 1–9 of 9

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.

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)

This archived topic is closed to new replies.