Lazy load of videos on mobile devices

Posted in: Newspaper
Post count: 65

Hello,

My site is videosupporters.com and it has a lot of embeded videos, so I installed the plugin ” WP YouTube Lyte” to “lazy load” of videos (note: I don´t have installed the mobile theme of Newspaper because it makes that a important part of my site doesn´t appear in the mobile devices, and besides the responsive Newspaper works fine).

After installing that plugin, the speed of the site at desktops improved significantly.

However, it didn´t happen nothing in the mobile devices, in spite of having added the code that the plugin advices:

add_filter(‘lyte_do_mobile’,’lyte_on_mobile’,10,0);
function lyte_on_mobile(){
return true;
}

The developer of the plugin can´t find the origin of the problem, although recognizing that the videos (on the homepage) are not “lyte”.

I just don´t know how to solve this problem, so I ask you if you have any idea of what is going on (I admit that it can be related to the theme).

Thank you.

Best regards.

Post count: 65

Hello,

In addition to my previous mail, translate below the comment of the developer of the plugin:

“you’ll have to ask the newspaper developers if they have a filter that we can use to alter the featured video field with. that way we can hook it to WP YouTube Lyte.”

Thank you.

Post count: 20688

Hi,

Unfortunately not all plugins are compatible with premium themes. Some may work properly and others could create problems or interfere with the theme functionality. If you want to implement that feature for your videos, you could search for different plugins with this capability and try a few of them and maybe find one that works best. I can not make any recommendations in this matter because no such plugins were tested with the theme.

Thank you for understanding!

Post count: 65

Hello,

OK.

But do you have a filter that it can be used by the plugin to hook into the “featured video” field?

Thank you.

Post count: 20688

Hi,

You can find the code used for featured videos here – https://www.screencast.com/t/2kwabn0mXwOO and here – https://www.screencast.com/t/vBmJyrwwM

Thanks

Post count: 11

Same question here, what is the field name for featured video ?

Post count: 20688

Hi,


@amp31
You can find how the theme handles the featured video in the screenshots links provided above. Please note that you will have to make the wanted modifications to the theme files yourself, or you could hire a freelancer/developer to help you if it proves to be a difficult task, because we can not provide any custom work at the moment, sorry.

Thank you for understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.