Skip Navigation

[Resolved] Background video in the custom content template

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1688517

Ok, the videos are visible in the user's Media Manager, but something is still off.

I have a cred form that has a field for video file upload, which will be used as a background video in the custom content template named Exhibitor Booth. I used some custom code I found on your site to achieve this. Initially, the video background does not appear at all, unless you log in to the back end as an admin and and click the blue update button on the post.

Just need Exhibitor Name, as this becomes the post title. And then you can select the Video Background radio button and upload a video. After you submit the form, you are taken to the new post page when you can see that area at the top behind the heading is blank. That's where the video should load.

Then go to Admin login above, find the post and then click the blue update button. After that go back to the post page and you will see that the video does indeed load.

I have tried several things with Access but nothing seems to work ;-(

#1688521

Hello,

I can login your website, will update here if find anything.

#1688541

I assume we are talking about the content template:
hidden link

I have done below modifications in above content template, in the header of content template, add a shortcode block, with below codes:

<video loop muted autoplay id="moodvideo" class=""><source src="[types field='header-video-file' output='raw'][/types]" type="video/mp4"><img id="alternative" src="[types field='image-for-gallery-of-exhibitors-page' size='full' url='true'][/types]" /></video><div id="vid-head"><h1>[wpv-post-title output="sanitize"]</h1></div>

Above codes are copied from another post
hidden link
field "New Video Code"

Test it in front-end again, for example:
hidden link

It works fine, it is only an example, you will need to customize those shortcodes according to your website settings manually.

#1688965

My issue is resolved now. Thank you!