• Hello!

    i want to insert manually in the code the contact form, inside some php file but not with do_shortcode() or anything like that, just plain html without a php function.

    is that possible? is there a html code to get from the plugin and that still the contact form db will keep count and save my leads?

    thanks in advance,
    Roy.

    https://ww.wp.xz.cn/plugins/si-contact-form/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Roy is this what you mean..

    Use this code:

    <?php
    if ( isset($si_contact_form) )  {
     echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1' ) );
    }
    ?>
    
    Be sure to set the correct form number for example, for form 2 you have to set: 'form' =>'2'
    
    This may work also:
    <php? echo do_shortcode('[si-contact-form form="1"]'); ?>

    Thread Starter Roy Moses

    (@rmoses123)

    he bro, thanks for your help but you are saying is not fixing my problem, i am trying to implement a contact form on top of a easy-fancybox plugin that opens the pictures,

    my code goes like this:
    ‘function(title, currentArray, currentIndex, currentOpts) { return \'<div id=”fancybox-title-over”>\’ + title + \’
    צור קשר: [email protected] | 03-6816988</div>
    <?php echo do_shortcode(“[si-contact-form form=”1″]”);?> \’;}’ => __(‘narrow’,’easy-fancybox’) ,

    it seems i cant use do_shortcode or any echo inside this function.. this is what i seem to understand so i am trying to find a way pass that to get a contact form below every image that opens in my fancy box… if you have another solution i will be most grateful (:

    Hi rmoses123 thank you for clarifying what you are trying to do. Please create a support ticket.

    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘contact form html code’ is closed to new replies.