Add input on change delay

Simply add this line to the javascript as is, for whichever page or block and it will set a delay on the input fields onchange. It will apply to all your input fields.

Outsystems default onchange delay is 800 which can be annoying when typing and it resets your cursor back to the start of your text. This will delay that jump on the text cursor.

osOnChangeTimerDelay = 3000;

Add Script to WordPess Header
function my_custom_js() {
    echo '<script src="https://wchat.freshchat.com/js/widget.js"></script>';
}
// Add hook for admin <head></head>
add_action( 'admin_head', 'my_custom_js' );
// Add hook for front-end <head></head>
add_action( 'wp_head', 'my_custom_js' );

Remove Admin Menu Items
function remove_menus(){
  remove_menu_page( 'index.php' );                  //Dashboard
  remove_menu_page( 'edit.php' );                   //Posts
  remove_menu_page( 'upload.php' );                 //Media
  remove_menu_page( 'edit.php?post_type=page' );    //Pages
  remove_menu_page( 'edit-comments.php' );          //Comments
  remove_menu_page( 'themes.php' );                 //Appearance
  remove_menu_page( 'plugins.php' );                //Plugins
  remove_menu_page( 'users.php' );                  //Users
  remove_menu_page( 'tools.php' );                  //Tools
  remove_menu_page( 'options-general.php' );        //Settings 
}
add_action( 'admin_menu', 'remove_menus' );

Search

Your Favourite Posts

  • Your favorites will be here.

Latest Content

© Garth Baker 2025 All rights reserved.

Pin It on Pinterest

Share This