Support » Fixing WordPress » Adding a class to sub-menu
3 years, 8 months ago
THis solution with JQuery will add class to your sub menu so you can achieve drop down using CSS.
Add a title in WP to each <li> under the same sub-menu
Search for the title and add a class.
$('a[title="Audio songs sub"]').closest('.sub-menu').addClass('parent1');
Please put your code samples between backticks. Your code is breaking this page.
Could a moderator fix this so we can make sure we are seeing all of his code? Thanks!
Fixed but I don’t know if the forum didn’t eat some :/