• Home
  • About
  • Web Design
  • Web Hosting
  • SEO & Marketing
  • Tools & Tips
    • Email
      • Reporting Spam Email
    • Security
      • Free Security Tools
    • Dropbox
      • What is Dropbox?
        • Using Dropbox as a File Server
    • Google
      • Creating a Google Account
      • Adding a Review to Google
      • Google Analytics Report Templates
    • Andover Marketing
      • List Your Andover Event
      • Free Ad Sites for Andover
    • WordPress Tips
      • Shortcodes
      • Google Translate
      • Contact Form 7
  • News & Blog
  • Contact Us
  • June 20, 2013

Web design and SEO from Andover IT

Web design Andover | Andover web design | SEO, Marketing & Hosting

Contact Form 7

October 17, 2011 by Andover IT Leave a Comment

Contact Form 7 – Styling The Submit Button

Contact Form 7 is a very popular contact form plugin for WordPress and here is a quick and easy way to style the Submit button:

  1. Open your theme’s styling sheet / style.css file
  2. Add the following code to the style sheet
    .wpcf7-submit {
    padding: 5px;
    }
  3. Save the file and upload it

That’s it! You have just applied a 5 pixel padding to the button and you can apply other formatting to change the background, font size etc by adding further options to the code.

 

Contact Form 7 – Redirecting After Submit

With thanks to mallsop on the WP Forums, here’s a quick way to get Contact Form 7 to redirect your user after they have successfully sent a message:

  1. Go to the “Messages” section at the bottom of the page
  2. Amend the Sender’s message was sent successfully text as follows:
    Your message was sent successfully. <script> location.href=”http://www.yoursite.com/thankyou/”; </script>
  3. Save the relevant form

Anyone now successfully sending a message will be redirected to the relevant page.

 

Adding The Sender’s Information (IP Address, Date and Time)

There are other options as well that can be found on the Contact 7 Special Mail Tags page, however this is useful for tracking potential spammers.

Complete the form as required and then add the following code at the bottom of the Message Body (the response you receive by email):

Sent by IP address [_remote_ip] on the [_date] at [_time].

Not 100% perfect against spoofed addresses but it might help.

Search The Site

Recent Posts

  • Client – The Dairy House, Wallop
  • New Client – Test Valley Tree Surgeons
  • New Client – PEC UK
  • New Client – Academy Removals
  • “I Was Surfing Through Your Site…” Emails
  • Piano Removals Company – Website & SEO
  • 2 Circles – New SEO Client

Categories

  • Blog
  • Marketing
  • News
  • SEO
  • Showcase
  • The Website
  • Tips & Advice
  • Website Tips

Return to top of page

Copyright © 2013 · Web design & SEO by Andover IT · Log in