Wordpress Utility Functions
Contains useful functions for Wordpress themes. Files are organised so that functions for similar purposes are grouped together
-
Copy wp-util folder to root of theme
-
Add:
require get_template_directory() . '/wp-util/wp-util.php';to functions.php
add_slug_body_class - adds "page-slug" to the body class of a page (easier than page-19 or whatever for styling across multiple installations)