php script for sidebar
-
Hi,
I have installed WordPress on my site and have included a shortcode contact form on the following page:
https://alpha-art.co.uk/contact-us/
That is all fine as is the shortcode “join our mailing list” form on the homepage (https://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 https://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
- The topic ‘php script for sidebar’ is closed to new replies.