In this chapter, we will cover:
Linking to your theme's JavaScript files directly
Adding JavaScript files to your theme programmatically
Adding a bundled library to your theme programmatically
Creating a featured post slider
Making sidebar widgets toggle-able
Adding a font-size toggle
In the last couple of years, web users have become quite a bit more sophisticated. As this happened, many came to expect a certain level of dynamic interaction with a web page. The dynamic element can be many things, the most popular being animating elements and dynamic content loads.
Luckily for developers, this rise in interest in dynamic elements coincided with the maturation of JavaScript libraries and techniques. This makes creating fun and useful interactions on your site simpler.
To make things even easier for a WordPress developer, the WordPress package comes bundled with many popular JavaScript libraries built-in and ready-to-use. In this chapter, we'll look...