Skip to content

Instantly share code, notes, and snippets.

Last active December 15, 2015 03:39
What would you like to do?
add menu-class to wordpress menu
function add_menuclass($ulclass) {
return preg_replace('/<a/', '<a class="resalf"', $ulclass, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment