Hi everyone,
I'm trying to insert an image tag after the anchor tag in nav menu items. This is what I have:
function kwight_add_hover_image($args) {
$themedir = get_bloginfo('stylesheet_directory');
$args['after'] = '<img src="' . $themedir . '/images/menu_hover.png" />';
return $args;
}
add_filter( 'wp_page_menu_args', 'kwight_add_hover_image',11);
Using $args['link_after'] and some dummy text works correctly; any idea why the above gives me nothing? Is there a better way to do this?..
Thanks