Published on Mar 26, 2019

multiScroll in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to implement multiScroll.js in Oxygen.

Step 1

Let's load the CSS and JS files of multiScroll.js in Oxygen editor and on the front end.

Install and activate My Custom Functionality plugin.

Connect to your server using a FTP client and navigate to the plugin directory.

Upload jquery.multiscroll.min.css to the plugin's assets/css directory.

Upload jquery.multiscroll.min.js to the plugin's assets/js directory.

Edit plugin.php .

Replace

add_action( 'wp_enqueue_scripts', 'custom_enqueue_files' );
/**
* Loads <list assets here>.
*/
function custom_enqueue_files() {
// if this is not the front page, abort.
// if ( ! is_front_page() ) {
// 	return;
// }
// loads a CSS file in the head.
// wp_enqueue_style( 'highlightjs-css', plugin_dir_url( __FILE__ ) . 'assets/css/style.css' );
/**
* loads JS files in the footer.
*/
// wp_enqueue_script( 'highlightjs', plugin_dir_url( __FILE__ ) . 'assets/js/highlight.pack.js', '', '9.9.0', true );
// wp_enqueue_script( 'highlightjs-init', plugin_dir_url( __FILE__ ) . 'assets/js/highlight-init.js', '', '1.0.0', true );
}

with

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right