Disable the “auto focus” feature on the Other Amount option

By default, when the “Other Amount” value is chosen the amount input field will be automatically focused. To disable this feature, follow these steps:

1. Download the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
2. Create a Snippet with the following code (you can optionally add this to your functions.php if you’re more familiar with that process instead.)

add_filter( 'pwgc_auto_focus_other_amount', '__return_false' );

Note: This requires PW WooCommerce Gift Cards Pro version 1.337 or later.

Skip to content