Gravity Forms: Retain the Form After a Form Submitted

By default, if you use Gravity Forms, after you complete a form, a notification will be shown, and the form will be dismissed. Below is the script to retain the form after a form is submitted.

Just paste into functions.php and change the _id with the form ID.

I found this script somewhere, but I will credit the original source once I found it.

snippet, Wordpress, , Leave a comment

How To Fix Random Freeze After Update on Windows 10

In last 2 major updates (anniversary update end of 2016 and creator update April 2017), I experienced random freezes, it was completely frozen, even if you look at log viewer the message show “force reboot” without any details.

So I began to look at the current status of my PC’s hardware using speccy, nothing seems wrong, temperature, voltage, etc, looks normal. I also updated all drivers, memory check, etc, but the issue persists.

Continue reading “How To Fix Random Freeze After Update on Windows 10”

Another View Inside
     
Hardware, How To, Windows2 Comments

How to set posts redirect to a new domain

I’m moving out a blog to a new domain, and redirect all posts specifically to a new domain.

http://olddomain.com/category/postname

should go to

http://newdomain.com/category/postname

Apache Server

On Apache that allows .htaccess, you can add this line on top of the file:

Nginx Server

On Nginx, add this line on server block configuration file:

Reload or restart Nginx for the change to take effect.

 

Linux, snippet, Uncategorized, Wordpress, , , , , Leave a comment