How to secure the WordPress login panel with fail2bain (and without plugins)

If you are running your own server, it may be useful to create a jail with fail2ban to block attempts to access your blog. (I assume you already have fail2ban installed) Edit the local jails file: sudo nano /etc/fail2ban/jail.local Find the log path for your server (important) NGINX: /var/log/nginx/access.log APACHE: /var/log/apache/access.log add the wp-auth jail: […]

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.

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. Example 2 This is another example that check the image size to be less than […]

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). […]