Show FormCraft form on page open

Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I am using WordPress FormCraft plugin on my site. I created a form and got the form short embedded code

[fc id='4'][/fc]

I want to show this form when the user opens the page.

Can anyone tell how can approach this?

I also try in Page Editor I got an option to add form it generated below code for me.

[fc id='4' type='popup' button_color='#4488ee' font_color='white'][/fc]
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I am using WordPress FormCraft plugin on my site. I created a form and got the form short embedded code

[fc id='4'][/fc]

I want to show this form when the user opens the page.

Can anyone tell how can approach this?

I also try in Page Editor I got an option to add form it generated below code for me.

[fc id='4' type='popup' button_color='#4488ee' font_color='white'][/fc]
Share Improve this question asked May 31, 2019 at 22:08 Mohammad FareedMohammad Fareed 1151 silver badge7 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

From the documentation, you have to use the shortcode:

[fc id='12' type='popup'][/fc]

Next, something has to trigger the form, you can create a button for that and then click it from jQury, edit the link which would trigger this form, and put the href or hyperlink to:

<a class="triggerForm" href="http://yoursite/form-view/12">Link Trigger</a>

jQuery trigger.

$(document).ready(function () {
 $('a.triggerForm').click();
});

Found a simple solution without changing any code. I have used another plugin Popup maker that will create a pop-up, there I can configure on page load / with time delay.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745421394a4626979.html

相关推荐

  • Show FormCraft form on page open

    Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信