In our last WordPress Development Basics article, we created a bare bones WordPress theme from scratch. In this article, we’ll add a custom navigation menu to that theme with the help of functions.php.
The WordPress theme we created last time around was just about as simple as a WordPress theme can be, consisting of only four files: style.css, header.php, index.php, and footer.php. But almost all free and premium WordPress themes also include a file called functions.php. It’s not a requirement, but functions.php works a bit like a plugin, allowing developers too add functionality to their themes beyond the capabilities of templates and stylesheets. Custom navigation, for example! Read More