Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding a contact form to Wordpress

Featured Replies

Hi guys,

 

Its my first time properly using Wordpress as a CMS (for my portfolio site) and I'm having a bit of trouble adding a contact form.

 

I've tried using 'Contact Form 7', and it downloads and installs fine, but it gives me a small piece of code, '[contact form 1 ('contact form 1')]' (its something like this, not exactly this), to paste into my post/page. It works fine, but it displays on my site as a post, and I simply want it to appear on my Contact page as a contact form, not being displayed as a post. Is there perhaps some piece of code I am missing to be able to code it in and reference it from my contact_page_template.php file, thus bypassing the need to add the piece of code as a post?

 

I know I could just code it manually, but it seems silly when all this should be doable using Wordpress and widgets!!

 

I'm sure its something obvious, but a point in the right direction would be welcomed,

 

Thanks in advance,

 

Kyle

Edited by KCooper

If you mean what I think you mean, i.e using the contact form outside of the loop, then this should do it:

 

<?php echo do_shortcode( '[contact-form 1 "Contact form 1"]' ); ?>

  • Author

Thats just what I needed!

 

Cheers dude! :)

 

+1

 

 

Kyle

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.