WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Contact Form in Custom template (7 posts)

  1. Maracas1970
    Member
    Posted 2 years ago #

    Hi all

    I have made a theme and made several pages. I have downloaded and installed the Contact Form 7 activated it. I added the code needed in the appearance/ editor on the contact page i made, with html/css.

    All it displays when i update it is the code that calls it and no form. As it`s a custom made theme made by myself, do i need to put the plugin somewhere else? As i only use the page editor to link my own pages in to the navigation.

    Hope this makes sense..

    Kark

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Find the default CSS for Contact Form 7 and copy it to your stylesheet?

  3. Maracas1970
    Member
    Posted 2 years ago #

    Well, i need to be able to not have to do that each time i install a newer version or a plugin for something else such as a gallery.

    Is there no way of just activating the plugin and having it go right into my template page?

    The thing is, all the plugins i see ask you to add the code into the pages section. The pages i created are selected through the page attributes/templates drop down.

    The page fields are blank they are just there so i can select the page templates and link into the navigation..

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

  5. Maracas1970
    Member
    Posted 2 years ago #

    Got it to show up using

    <?php echo do_shortcode( '[contact-form-7 id="58" title="Contact form 1"]' ); ?>

    Seems to work OK now. What i`d like to know though if anyone cares to help is, am i going to have to use these do_shortcode() functionsfor all the plugins? Do some accept the functions and others not?

    Thanks..

  6. Maracas1970
    Member
    Posted 2 years ago #

    Touche SwansonPhotos and thanks.

    Found this at probably the exact same moment you posted it. Cheers dude ;)

  7. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Each plugin is different...I use Contact Form 7 in both Posts and Pages... If a plugin is not working in the loop for you, you may need add some code for pulling in plugins to your customized template, but plugins work in many ways, so each one would need to be reviewed for how it works.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.