I would do this with JS I’m afraid. It’s the quickest simplest form. Using jQuery I have this snippet.
jQuery(function($){
$('.menu li:has(".sub-menu")').addClass('has-sub-menu');
});
Then you can use CSS to do what you need 🙂
I would do this with JS I’m afraid. It’s the quickest simplest form. Using jQuery I have this snippet.
jQuery(function($){
$('.menu li:has(".sub-menu")').addClass('has-sub-menu');
});
Then you can use CSS to do what you need 🙂