Mac prevent default for Command key + Click

// Mac prevent default for Command key + Click
$(document).bind('contextmenu click', function(e) {
    // 1 left click
    // 2 middle click
    // 3 right click
    if (e.which === 3)
    {
        // show context menu
        return e;
    }
    else
    {
        // don't show context menu
        return false;
    }
});

Possible bug with input type=”file”

Advertisements

Contact Form 7 and Gmail… How?

Recently installed Contact Form 7 and found myself in front of difficulty. The solution took me awhile. To set Contact Form 7 send mail to Gmail you need WP-Mail-SMTP plugin.

Configuring the plugin also took some time, but I finally got it.

WP-Mail-SMTP configuration to work with Gmail smtp server
WP-Mail-SMTP configuration to work with Gmail smtp server

I left some fields empty which config dinamically wordpress to send to default email. In our case this is the email set in Contact Form 7 form.