14 Feb

Simple WordPress Contact Form 7 Phone Validation

I looked around for a simple Contact Form 7 phone validation however all the solutions I found relied on hacking the Contact Form 7 code. By looking through the CF7 code I found a way to attach a simple function to the validation to allow custom validation of any input type you like

To plug into the Contact Form 7 validation there are some filters you can attach to. The built in validation functions do this so we’re copying the standard CF7 way of validation.

All of the code given here can be put into the functions.php file in your wordpress theme.… Read the rest

07 Feb

What to do if WordPress site just shows a blank page

Sometimes a poor setup for wordpress can cause the site to return a blank screen. If you try accessing through /wp-admin/ and it still returns a blank screen then there are generally three causes:

  1. A broken .htaccess file
  2. A broken theme
  3. A plugin causing issues

Go through the following steps to fix this issue:

  1. Try removing the .htaccess in the root directory and see if the site works
  2. Remove the main theme directory (using FTP access) and see if the site works.
  3. If this fails turn off your plugins (by deleting them using FTP if you can’t get in through wp-admin) and again see if the site works.
Read the rest