Reply To: Add FitVids to GeneratePress for responsive videos

Home Forums Support Add FitVids to GeneratePress for responsive videos Reply To: Add FitVids to GeneratePress for responsive videos

Home Forums Support Add FitVids to GeneratePress for responsive videos Reply To: Add FitVids to GeneratePress for responsive videos

#200991
Tom
Lead Developer
Lead Developer

Those classes stay the same, you put your youtube code inside each element:

<div class="single-video">
    Video HTML for single post
</div>
<div class="category-video">
    Video HTML for category post
</div>

That’s what you add inside the post – two videos, one for the single post and one for the category view.

Then you add your CSS:

.single .category-video {
    display: none;
}

body:not(.single) .single-video {
    display: none;
}

That’s what will make the above HTML work – no need to change any classes, just add the videos inside those elements.