• I’m trying to insert the form in the footer using Executable PHP widget plugin! but its not displaying the form!

    I’m using the code
    [
    <?php
    if ( isset($si_contact_form) )
    {
    echo $si_contact_form->si_contact_form_short_code( array( ‘form’ => ‘1’ ) );
    }
    ?>
    ]
    From the authour plugin site!

    Will be grateful to u guys if u can short this issue !

    Rgds

Viewing 8 replies - 1 through 8 (of 8 total)
  • Why the brackets? Try it without them.

    It doesn’t work with my theme if it is in the footer.php.

    The code above works if I put it in the header, or “body” part of the page such as page.php, single.php (Single Post), etc. but not in the footer.php. Other contact form plugins, don’t work in Footer too?!

    bl@cky,

    It could be the theme you are using is causing it…
    Do this as a test:
    In Admin, click on Appearance, Themes.
    Temporarily change your theme to the “WordPress Default” theme, or “Twenty Ten” (default for WP 3.0).
    It does not cause any harm to temporarily change the theme and change back.
    Does it work properly now?
    If it does then the theme you are using is the cause.
    Contact your theme author for support.

    In the Twenty Ten 1.1 theme the code doesn’t work in footer.php, neither in sidebar.php…

    Here is instructions for sidebar.
    https://www.fastsecurecontactform.com/sidebar-widget

    Adding to footer requires similar treatment, but the code is this:
    add_filter('wp_footer', 'do_shortcode');

    How do you then add the [si-contact-form form='1'] to the footer? I’ve added the code to the functions file and then added the contact form code to the footer but I just get the text displaying rather than the form?

    I’ve tried using both twenty ten and twenty eleven but can’t get it to work!

    It works fine within a sidebar widget but I want to add to the footer rather than a footer widget.

    Any help appreciated ??

    emmafull, try editing the footer directly and add this code instead of shortcode.

    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′

    Nope, still no contact form! I don’t know enough php to investigate the issue myself unfortunately.

    I will have to re-think my idea for a contact footer, thank you for the help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Add the form in Footer – Not working’ is closed to new replies.