

Open functions.php in your preferred code editor. Open, search for “mCSB_buttons.png.” Change the line background-image: url(mCSB_buttons.png) to background-image: url(images/mCSB_buttons.png). Note: As always, before making any changes to your theme files, be sure to run a backup of your site or work in a local development environment, like Local. Copy over mCSB_buttons.png into your theme’s images folder. Copy over into your theme’s CSS folder.ĥ. Copy over into your theme’s JavaScript folder.Ĥ. Head over to github and download the latest plugin package.ģ. If you need help loading jQuery into WordPress, follow this tutorial.ġ. One thing to note is that for this plugin (or any other jQuery plugins to work), your WordPress theme must already have the jQuery library installed.

The number of JavaScript plugin options out there that can achieve a custom scrollbar is quite staggering, but I settled on this particular one for the following seven reasons: In this tutorial, we are going to use a jQuery plugin called the Malihu Custom Scrollbar.
#YACREADER W AND S TO SCROLL ANDROID#
Some Webkit-based browsers (Chrome, Safari, the default Android browser, etc.), offer proprietary CSS vendor-prefixed ways to achieve this, but what we want is a silver bullet – a solution that will work across all browsers and operating systems.
#YACREADER W AND S TO SCROLL HOW TO#
If you are one of these people, today is your lucky day – I’m going to show you how to create a custom scrollbar in a few easy steps, then we’ll overwrite the default browser scrollbar and achieve a consistent look and feel across all browsers and operating systems!Īs you may already know, CSS does not offer a universal way to directly target the scrollbar, so the only viable option is JavaScript –jQuery, to be precise. Some detail-oriented clients and designers may have noticed the inconsistent look and feel of the scrollbar across these different touch points. Pretty much all browsers and operating systems display it differently. The scrollbar is arguably the most neglected browser element when it comes to design.
