How to disable AOS (animate on scroll)?

To disable AOS (animate on scroll) that loaded by the Oxygen Builder plugin, you can use the following PHP snippet code:

add_action('wp_enqueue_scripts', function(){
	wp_dequeue_style('oxygen-aos');
	wp_dequeue_script('oxygen-aos');
}, 1000);

You can add the PHP snippet code above to any plugin main file, or creating a new plugin by using the following code:

<?php
/**
 * dequeue AOS
 *
 * @wordpress-plugin
 * Plugin Name:         dequeue AOS
 * Description:         disable AOS (animate on scroll)
 * Version:             0.0.1
 * Requires at least:   5.0
 * Requires PHP:        5.6
 */
 
defined( 'ABSPATH' ) || exit;

add_action('wp_enqueue_scripts', function(){
	wp_dequeue_style('oxygen-aos');
	wp_dequeue_script('oxygen-aos');
}, 1000);

That’s all, I hope it helps to answer your curiosity.


If you didn’t want to create a new plugin for snippet code or adding the snippet code to any plugin main file that may be loss when the plugin is updating, you can use Script Organizer by dPlugins.com.

3 Likes