wpforms X Barba.js – init forms after transition

[ad_1]

Hi there,

I am using WordPress: wpforms pro with barba.js transitions framework
https://barba.js.org/docs/getstarted/intro/

I am trying to custom init wpforms after page transition.
On “Once” state – when i refresh page plugin send emails normally, problem is only with transition.

I used similar code and init scripts according to this link.
here is a good explanation of problem:
https://www.fjobeir.com/implement-barba-js-with-wordpress/

Have a look for image attachment. Even it loaded many Wpforms scripts that it detect which should be loaded, there is error for “wpforms_settings is not defined”. Is there any way to init it as well? i review plugin code but i’m not sure what to do.(i am able to add code with js and php to wp).
* Tested on no cache plugins at all *

Also I diagnosed couple of scenarios:
1. Once – page refresh it works
2. Load straight contact page -> other page -> back to contact – no wpforms_settings error because it loaded at first place but still could send email
3. Other page -> contact – wpforms_settings error from screen

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer