How to add a video popup from youtube/vimeo to the page/post


Set up code before add videos

Before add video in pop, Need you added new custom js code to delivery bigger pop video width, auto play and only related video on pause or/and at the end of the video for the code we just need implement the js and css part with new method on main code the standard implementation on the page.
See example from below video

Update Script in JS file

  1. Download Script here
  2. Put script to file /framework/wp-content/themes/imaFramework/js/custom.js


Update CSS in CSS file

  1. Download Script here
  2. Put CSS to file /framework/wp-content/themes/imaFramework/style.css

Step to add YouTube or Vimeo video:

  1. Select the YouTube or Vimeo video that you wish to embed.
  2. Copy url from YouTube or Vimeo video.
  3. Prepare cover image for display for click to view video
  4. Paste the url and cover image into your website, and add class =’video’ for a href tag
  5. Click update and preview

Contact Us
© 2020 Imarketingonly All rights reserved.


The Great Oast, Steep Marsh Petersfield Hampshire GU32 2BN
125/5A Srisoonthorn Road. Cherngtalay District. Thalang Phuket 83110
+66 (0) 76 324184 +66(0) 898 740 040 +44 (0) 1730 895648 +44 (0) 208 1234 164 +44 (0) 7798 554540 Start Price 120 GBP