Clear or Reset button in Contact Form 7

Contact Form 7 WordPress plugin have Submit button in Generate tag drop down, and it goes easy. But it don’t have Reset, or Clear button. Here is easy solution how you can add it in your form.

In left side, where the form code is, just add this code at place where you need it:

[codesyntax lang=”html4strict”]

<input type="reset" value="Clear Fields"  />

[/codesyntax]

You can see on this image, example of that

reset-contactform7

JQuery div tooltip

Here is my small script for Jquery tooltip that will popup on div hover. It’s very easy for implement and it can be used for one div but also for as many as you want, same as for tables made in divs.

You can check demo here.

HTML

 

[codesyntax lang=”html4strict” title=”HTML”]

<div class="tooltip-target">target 1
<div class="example-content">Example of tooltip content for box 1.</div>
</div><!-- .tooltip-target -->

[/codesyntax]

 

jQuery

Continue reading JQuery div tooltip

Show just first image with WP Types

If you are using WordPress Types plugin for Custom Fields and Custom Post Types Management and you use image custom filed, sometimes you may need to show just one image instead of all uploaded for particular post or page.
I am not using shortcodes but PHP implementing, so some situations and needings can be tricky. Continue reading Show just first image with WP Types

WP: exceeds the maximum upload size for this site

When you are trying to upload some big image or other type of file on wordpress, you can get this error:

File has failed to upload due to an error. This file exceeds the maximum upload size for this site
Maximum upload file size: 2MB.
(or some other value, but anyway smaller then your file you want to upload.

Here is one possible solution (it worked for me):

Continue reading WP: exceeds the maximum upload size for this site