plugin-icon

Lazy load videos and sticky control

Lazy load and sticky your video. Super-easy and fun!
Puanlar
4.2
Son güncellenme
June 9, 2024
Sürüm
3.0.0
Aktif kurulumlar
100
Lazy load videos and sticky control

This plugin enhances page load times by loading only the YouTube video preview image initially. Additionally, it offers the option to make your video sticky, positioning it at the top or bottom of the window when the user scrolls away from the video viewport.

Features

  • Lazy Load Videos: Reduce the amount of time it takes to load your video by loading just the video thumbnail.
  • Multiple Video Support: You may quickly and simply add more than one video to a page. Videos can only be played one at a time, and when one is playing, the other one instantly pauses.
  • Sticky Video: Keep videos visible as you navigate by adhering them to the top or bottom of the screen to ensure ongoing playback.
  • Custom Styling: Adapt your videos’ look to perfectly match the style of your website by using your own CSS.

Usage

Method 1: Using the Classic Editor (WP Editor)

  1. Generate Shortcode in WP Editor:

    • Open the post/page where you want to add the YouTube video.
    • In the WordPress editor, click on the LLVASC icon. This will open a popup window.
    • In the popup, add your YouTube video ID. The video ID is the unique alphanumeric code found at the end of your YouTube video URL. For example, in https://www.youtube.com/watch?v=iXGoAj7IEys, the video ID is iXGoAj7IEys.
    • After entering the video ID, click “Ok”. This action will generate and insert a shortcode into your content.
  2. Shortcode Format:

    • The shortcode added to your content will look like this: [lazy-load-videos-and-sticky-control id=”Youtube-video-ID”]
    • For example, if your video ID is iXGoAj7IEys, the shortcode will be: [lazy-load-videos-and-sticky-control id=”iXGoAj7IEys”]
  3. Save/Update:

    • Save or update your post/page to apply the changes.
  4. Preview and Customize:

    • Preview your page to see the embedded video.
    • If you need to adjust the styling, you can add custom CSS in the General tab of the plugin settings.

Method 2: Using Gutenberg Block

  1. Add a Block:

    • Open the post/page where you want to add the YouTube video using the Gutenberg editor.
    • Click on the “+” icon to add a new block.
  2. Select the LLVASC Block:

    • Search for the “LLVASC” block in the block library.
    • Add this block to your content.
  3. Enter YouTube Video ID:

    • In the LLVASC block settings inspect control, select your video platform and enter your video ID. For example, if your YouTube video URL is https://www.youtube.com/watch?v=iXGoAj7IEys, the video ID is iXGoAj7IEys.
  4. Save/Update:

    • Save or update your post/page to apply the changes.
  5. Preview and Customize:

    • Preview your page to see the embedded video.
    • Customize the block settings as needed to adjust the appearance and functionality.

Demo Preview

Demo

ÜcretsizCreator paketinde
Yükleme işlemini tamamlayarak, WordPress.com'un Hizmet Şartları ile Üçüncü Taraf Eklenti Şartlarını kabul etmiş olursunuz.
Aktif kurulumlar
100
Test edilen son sürüm
6.5.5
Bu eklenti, WordPress tarafından barındırılan kurulumunuzda kullanılmak üzere indirilebilir.