Support » Plugin: Fast Secure Contact Form » php script for sidebar

  • Hi,

    I have installed WordPress on my site and have included a shortcode contact form on the following page:

    http://alpha-art.co.uk/contact-us/

    That is all fine as is the shortcode “join our mailing list” form on the homepage (http://alpha-art.co.uk/).

    I have a problem however. My sidebar is not available in the Appearance options (due to the type of theme I’m using). Instead, anything I put in the sidebar – see http://alpha-art.co.uk/about-us/ for the example – has to be input into my sidebar.php whilst editing the theme scripts. I have put in the php scripts for the Facebook Like button and also linking a couple of photos up there. I have been trying to get another “Join our mailing list” in there above the Facebook Like button.

    Having read some forums, I have put the following php script onto the sidebar.php editor:

    <?php
    if ( isset($si_contact_form) ) {
    echo $si_contact_form->si_contact_form_short_code( array( ‘form’ => ‘1’ ) );
    }
    ?>

    However, this has not brought the form up. Do I need to do anything else to show this form in the php editor? I am totally stumped now and would be very grateful for any help!

    Many thanks,
    Graeme

    https://wordpress.org/plugins/si-contact-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I realize your question is 8 months old but it doesn’t appear that you have added the contact form on your sidebar yet. I was just running into the same issue and tried the same code you listed without success. Below is what I eventually found in a forum that worked for me.

    <?php echo do_shortcode(‘[si-contact-form form=”1″]’); ?>

    Hopefully this works for you as well. Good Luck.

    Hi @pf40220 please read the following URL.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘php script for sidebar’ is closed to new replies.