What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Video pop up code

Valentina

New member
Joined
Sep 7, 2021
Messages
1
Reaction score
0
HTML Coins
0
Hi everyone,


Could any of you please help me on finding a code for a video pop up, that works by clicking on an image.
I have searched online a lot for a code; but I could only find codes that work by clicking on text.
Every tip or help is appreciated, thank you very much in advance.
 
Hi,
I will help you with code and make changes accordingly in HTML, CSS,JS

HTML:-
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="text-center display-4 mt-5">
Web Design & Content Management Software
</h1>
<p class="text-center mt-5">
<a href="#headerPopup" id="headerVideoLink" target="_blank" class="btn btn-outline-danger popup-modal">See Why Solodev WXP</a>
</p>
<div id="headerPopup" class="mfp-hide embed-responsive embed-responsive-21by9">
<iframe class="embed-responsive-item" width="854" height="480" src=""Link of your video" allowfullscreen></iframe>
</div>
</div>
</div>
</div>

CSS:-
#headerPopup{
width:75%;
margin:0 auto;
}

#headerPopup iframe{
width:100%;
margin:0 auto;
}


JS:-
$(document).ready(function() {
$('#headerVideoLink').magnificPopup({
type:'inline',
midClick: true
});
});


Try to make changes accordingly.. It will help you for sure.
Greetings,
Jim_Wick
 
Last edited:

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back