WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form
[resolved] Apply my Blog Theme (3 posts)

  1. Bucki
    Member
    Posted 1 year ago #

    Hi

    This contact Form is sick (good) and want to embed it within my theme.
    The code below shows the blog :

    <div class="homepage-widget">
    
    <div class="block full archive clearfix">
    
    <h3>
    
    <?php _e('Contact Us', 'Title'); ?>
    <span></span>
    
    </h3>
    
    <div class="block-content clearfix">
    <div class="post-content">
    
    <p class="post-meta">TITLE</p>
    
    <p class="post-excerpt"> the form should appear in here ... </p>
    
    </div>
    </div>
     </div>
    
    </div>
    </div>
    
       </div>

    I tried to use [contact_form] but that didnt work.
    I am sure, PHP coding is required but :( no ideaaaa

    Besides, I created a PAGE called CONTACTUS
    and simply typed [contact_form] and that worksssss but
    in WP u also got an option to apply a THEME to the particular page.

    So, that theme is called ContactUs.php with the code
    (as seen above)

    Hope someone might help me out here :D

    Cheers

    http://wordpress.org/extend/plugins/contact-form-plugin/

  2. Bucki
    Member
    Posted 1 year ago #

    plssssssssssssssss

  3. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Bucki,

    It is necessary to call option for the template instead of shortcode.
    Please write strings below into template:
    if ( function_exists ( 'cntctfrm_display_form' ) ) echo cntctfrm_display_form();
    If this insertion happening inside html, then write strings below:
    <?php if ( function_exists ( 'cntctfrm_display_form' ) ) echo
    cntctfrm_display_form(); ?>.

    In this cause, please change these:
    <p class="post-excerpt"> the form should appear in here ... </p>
    to
    <p class="post-excerpt"><?php if ( function_exists (
    'cntctfrm_display_form' ) ) echo cntctfrm_display_form(); ?></p>

    Kind regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.