you need to add the code differently; either in your (child) theme’s functions.php or safer using e.g. the code snippets plugin.
Hello,
The problem remains, in spite of adding the following code at the code snippets plugin:
add_filter(‘lyte_do_mobile’,’lyte_on_mobile’,10,0);
function lyte_on_mobile(){
return true;
}
Any suggestion ,please?
Thank you.
can you share your URL, I’ll have a quick look.
frank
Hello,
Yes, of course: videosupporters.com
Thanks!
the video’s (on the homepage) are not “lyte” @pedromiguelmoreira, so something is wrong here ..
Any idea of what can be causing this?
no, not really. how are you adding your video’s?
First I upload them using this site: http://www.baixartube.com.br/ ,
and then I put them in the posts “normally”, I mean, writing his URL at “Featured Video” of the post in WordPress.
ah, but WordPress core (so without plugins or a special theme) does not have “featured videos”, so this is something your theme or a plugin provides for you. the problem is that WP YouTube Lyte acts on “normal” content, so we’ll probably need some glue to make Lyte also turn your “featured videos” into Lyte videos.
I understand what you wrote, but so why WP YouTube Lyte works fine on desktops? I remind that the problems it only exists on mobile (this is just a reflection that I think it can be useful for you).
The theme that I use is Newspaper, and in the documentation support it has only this written:
“Featured Video will work only if you are using Video Format.
To set a Featured Video for your post just place your Youtube, Vimeo, Dailymotion or Facebook video link in the required featured video post box.
Video Format is perfect if you have a video and you want to show it in the beginning of your post.
On pages, the video preview displayed will be generated automatically. After you update the post you can see the generated preview image in the Featured Image post box.”
Thanks.
well, the homepage has no lyte-videos at all, neither on mobile nor desktop …
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.
Really? The homepage doesn´t have lyte-videos on desktop? OK, sorry, I thought that it had…
I´ve already made a request to the theme developers, let´s wait by their response.
Thanks again.
Hello,
Translate the answer of the theme developer (Newspaper):
“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.”
As a result, what do you suggest?
Thank you.
I suggest to ask them if they have a filter we can use to hook into the “featured video” field 🙂
Hello,
Here the answer of the theme developer:
“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.