Image

Contact form 7 onfocus Tweak

A plugin I find myself using on every wordpress site I create is contact 7. It works perfectly every time.  In my constant work towards making my sites simple for our users, one thing contact 7 was missing out of the box was hiding default text on focus.

When I put some default text into a field to help people know what format I want, the content in them would have to be manually deleted.  The fix I found for this is the code below.  It tells the form to hide the default text when they click into the field and for it to pop back up if they don’t enter any information.

[snippet id=45492]