Add icon based on recent post to Blog submenu in wp_nav_menu

I am thinking of adding an icon to my Blog menu title in WordPress.
Like a red circle indicating there are new recent posts.

The wp_nav_menu $link_after and $after attributes apply to all menu items and seem to allow text only. The menu walker seems overkill, but perhaps I should dive into this?

So I’m looking to implement a conditional behind the Blog menu link title.

In very very quasi code this is what I aim for:
Blog ?>

Hope this makes at least some sense and that someone can point me in the right direction.

Thanks.

Read more here:: Add icon based on recent post to Blog submenu in wp_nav_menu

Leave a Reply

Your email address will not be published. Required fields are marked *