Sometimes it’s a nice visual cue to differentiate WordPress menu items with children from those whithout. This function below will add the class has-sub-menu
to every WordPress menu item with a submenu, and allow you to style it as you see fit!
Place this function in your functions.php
file: