WordPress.org

Ready to get started?Download WordPress

Forums

Secure contact form with simple facebook connect (2 posts)

  1. sexyjason1986
    Member
    Posted 1 year ago #

    I was wondering if someone could help me out with this situation, i have been trying to figure it out for months but have not been able to.

    I am using secure contact form, and everything works except the thank you message wont display..

    Ive read posts that says its because the simple facebook scans the page and i read this article

    http://wordpress.org/support/topic/plugin-fast-secure-contact-form-contact-form-conflict-with-simple-facebook-connect?replies=6#post-2766265

    That says to place this code

    <?php 
    
    // prevent facebook like buttons on this page
    remove_filter('the_content', 'sfc_like_button_automatic', 30);
    
    get_header(); 
    
    /*
    Template Name: Contact Us
    */?>
    
    <!-- begin colLeft -->
    
    <div id="colLeft" >	
    
    		<h1><?php the_title(); ?></h1>	
    
    	<?php if (is_page('contact-us')) { ?><div style="margin-left:30px;">
    	<?php } else { ?>  <div style="margin-left:0px;"> <?php }
    
             if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<?php the_content(); ?>
    
    		<?php endwhile; else: ?>
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    		<?php endif; ?>
    
    <?php
    if ( isset($si_contact_form) )  {
     echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1' ) );
    }
    
    else print'<a href="mailto:me@my-email-example.com" />click here to email us</a>';
    ?>
    
    	</div>
    	</div>
    	<!-- end colleft -->
    
    	<?php get_sidebar(); ?>	
    
    <?php get_footer(); ?>

    But not sure quite were to place it, basically i have a contact us page that i created in the admin of wordpress, i do not have a template file for contact us, i am using a shortcode to insert my contact us form into a page.

  2. sexyjason1986
    Member
    Posted 1 year ago #

    i finally found out how to do this but its only for a left collum blog and mine is a right colum so it makes my right colum appear underneath the contact form

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.