- This topic has 9 replies, 4 voices, and was last updated 1 year ago by Tom.
January 17, 2020 at 8:57 am #1135327Benedikt
first off i wanna say great theme, fast as hell, pretty, i’m very happy 🙂
And my coding/html knowledge is pretty limited, sorry for that.
I have one problem though: i am using the plugin WP Youtube Lyte to prevent google from loading heavy js files from embeded youtube videos (also some GDPR issues). This plugin comes with video markup. But with GeneratePress active, the markup wont work. Google Markup tool doesnt find a Video Object, and search console is giving me video errors.
e.g.: field “thumbnailURL” is missing (allthough it’s in the code)
First i tried to deactivate one plugin at the time, but it seems to be caused by GeneratePress. Once i deactivate it, video markup works fine (in test tool).
Is there any way to fix this? I really do belive in the seo power of videos and need google to “read” them properly, but the speed impact of youtube lyte is crucial.
Thanks in advance for your help, i did find a lot of usefull information so far in this forum. You guys are very kind!
benJanuary 17, 2020 at 5:10 pm #1135613LeoStaffCustomer Support
Hmm can’t see how GP Premium would cause this problem.
Can you deactivate each module in GP Premium and let me know which module is causing the issue?
https://docs.generatepress.com/article/installing-gp-premium/#activate-your-modulesJanuary 18, 2020 at 12:39 am #1135760Suraj KatwalJanuary 18, 2020 at 9:43 am #1136219Benedikt
Thanks for the reply!
I tried deactivating each module, and did a test after each. Still broken markup. It is not until i change the theme to some other than GeneratePress, that google markup test shows me the video object.
@Suraj: thanks for the tipp! I did try WP Rocket Plugin, but Youtube Lyte gives me better results in terms of sitespeed (i use it for image lazy load though, great results there). And i like the idea of the video markup. So i hope we can find a solution.
What i tried today: i copied the whole code of the example page, and removed the all code to (inlcuded) this part: itemscope itemtype=”https://schema.org/CreativeWork”> As soon as this part of the code is removed, google markup test shows the video object. I think the creativework markup is added by GeneratePress (when i deactivate the theme there’s no creativework in the code), maybe this helps to narrow down the problem. Sidenote: when the code is removed in the testtool, suddenly “hcard” and “Person” markup shows up, beside videoobject.
benJanuary 18, 2020 at 6:00 pm #1136473TomLead DeveloperLead Developer
Let’s try removing the markup:
add_filter( 'generate_schema_type', '__return_false' );
Does that fix the issue?
Let me know 🙂January 19, 2020 at 5:49 am #1136749Benedikt
thanks for the reply! The provided code snipped works 😀
Do you have any idea what’s the conflict here? I would really love to see this awesome theme working with this awesome plugin. Since i do think, that the markup provided by the theme makes sense too.
Anyway thanks so far for the kind support!
BenJanuary 19, 2020 at 5:54 am #1136753Benedikt
I just went through the conversation i had with the developer of youtube lyte, and he suggested the following:
I *think* (but I should check the specs) that “video” has to be a child element of an “article” (well, that’s what I see on blog.futtta.be) and that does not seem to be the case on your site?
Maybe this helps. Sorry, i totally forgott about that detail ^^January 19, 2020 at 9:21 am #1137037TomLead DeveloperLead Developer
You can switch the microdata to “article” but that requires additional markup in your post, which can be a pain.
It’s ok to disable the theme schema like we did above, but you might want to look into a plugin that has JSON-LD (Yoast has it built-in, now).January 25, 2020 at 5:37 am #1143487Benedikt
Thanks for the support, i’ll give it a try!
cheersJanuary 25, 2020 at 9:27 am #1143869
- You must be logged in to reply to this topic.