How To Add A Form In Your Theme File
You would need to edit one of the theme’s PHP files for this to work. Do take a backup!
So, a simple shortcode to embed the form is:
[fc id='1'][/fc]
To use this in your theme file, us this PHP code:
<?php if ( function_exists("add_formcraft_form") ) { add_formcraft_form("[fc id='1'][/fc]"); } ?>
The embed code for a popup form is
[fc id='1' type='popup']Click Me[/fc]
So, the PHP code would be:
<?php if ( function_exists("add_formcraft_form") ) { add_formcraft_form("[fc id='1' type='popup']Click Me[/fc]"); } ?>