Skip Navigation

[Resolved] Background video in the custom content template

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.

Our next available supporter will start replying to tickets in about 5.83 hours from now. Thank you for your understanding.

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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

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

#1688541

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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!