If your website uses several transparent png images the most convenient and effective optimization is to convert all the media assets to webp format… this will cut heavily the pageload because webp could weigh up to 10% of the original image. There is a way with nginx to hijack the request from standard images formats […]
Author: Erik
Since I was first given a Commodore64 as a child my love for the keyboard was more than obvious! I’m Erik and I currently work in my own company in italy, where I am deployed as a fullstack developer (or one man army as you prefer). I have been studying graphics and communication but the curiosity has led me to be involved in all aspects of web design, from design to programming. I am the author/contributor of some plugins and templates for WordPress and WooCommerce, follow me on https://github.com/erikyo
Blog
How to secure the WordPress login panel with fail2bain (and without plugins)
Securing Your WordPress Site with Fail2Ban and Nginx In the ever-evolving landscape of cybersecurity, fortifying your WordPress site against malicious activities is paramount. One formidable tool in this arsenal is Fail2Ban, a versatile intrusion prevention software that adds an extra layer of protection by monitoring logs for suspicious behavior and taking preemptive actions. How Fail2Ban […]
Blog / Contact form 7
Show a Qr Code on contact form 7 mail submit
This example show how display a QR code on mail submit with Contact Form 7 For first go to the 3rd tab and edit the success message (the first) adding at the end %%[_date]-[_serial_number] (so the message will look like “success message sent %%[_date]-[_serial_number]”) ref. https://wordpress.org/support/topic/show-qr-code-on-successful-submission/
Blog / Contact form 7
CF7 change input value on onChange using jQuery
This example explains how to get a value with jQuery from a select and set another input value dynamically ref. https://wordpress.org/support/topic/most-elegant-way-to-achieve-this/
Blog / Contact form 7
Submit button withdrawal
you can enable the send withdrawal of the form (like in gmail) and abort the submission. Add this code to functions.php ref. https://wordpress.org/support/topic/withdrawal-button/
Blog / Contact form 7
Image preview
This is an example created some times ago for a support question into contact form 7 support forum, but could be very useful in order to show the uploaded images into a form with a input type file. ref. https://wordpress.org/support/topic/image-upload-preview-before-submit/ Example 2 This is another example that check the image size to be less than […]
Blog / Contact form 7
How exclude a day (jQuery datepicker + Contact Form 7)
ref. https://wordpress.org/support/topic/how-to-disable-exclude-specific-day-in-date-picker
Grid Layout
input Number Min Max not working on IOS as expected
ref. ref. https://wordpress.org/support/topic/contact-form-7-number-min-max-not-working-on-ios-as-expected/ Skip this please… it’s only an example for a question on the contact form 7 forum
Quick Start
Theme Setup
WordPress initial configuration After theme install we have some little jobs to do to get it working properly! First, create a menu then assign it into primary navigation (optional) You may want to setup some Widgets into footer. Last but not the least, we need to create the homepage (and optionally upload a featured image). […]
Quick Start
Environment Setup
When I did this theme I thought about my usual workflow… what I consider essential to speed up my development phase. I love gulp to handle template file tasks for each type of file there is a different processing. For example sass files are compiled into css, javascript files are transpiled and minified with uglify […]