How can i make this work in my theme functions.php file without having to install a plugin ?