I’m having trouble with the Ajax portfolio: the content is showing above the image but videos are not working. When a video is inserted the content is visible in the footer of the page. WordPress, Enfold and all plugins are up to date. Deactivating all plugins doesn´t help. What could be the reason for this?
Hey findr,
Thank you for the inquiry.
Looks like lazy loading is enabled for the videos. Did you embed the video shortcode in the portfolio? What happens when you disable lazy loading?
If you did embed the video using a shortcode, try to set the conditional_playparameter to blank. The video shortcode should look something like this.
[av_video src='https://' mobile_image='' attachment='' attachment_size='' format='16-9' width='16' height='9' conditional_play='' id='' custom_class='' av_uid='av-kfnd72u7']
Best regards,
Ismael
Hi Ismael,
thank you, but disabling lazy load and adding conditional_play to the shortcode didn’t change anything. You may look for yourself?
Hi,
We just realized that the video is not working as expected because of how the portfolio preview is loaded or rendered in the page. On initial load, the preview is not actually part of the page and will only get included in the page when the corresponding portfolio item for that preview is clicked. This causes the script that is supposed to play the video to fail.
As a workaround, we used the iframe tag instead of the video shortcode. (see private field)
Best regards,
Ismael
Ok, that’s a workaround I can live with. Thank you!
Hi findr!
Glad we could help :)
If you need further assistance please let us know.
Cheers!
Victoria