I'm currently making changes to a WordPress site locally. I'm utilizing jquery.dropotron from ajlkn for the menu, which is working well. However, I'm facing an issue when trying to assign a new class to the 7th child of the navPanel. Something seems to be preventing the class from being applied, but I can't identify the issue. In the code snippet provided, the class is successfully added. Does anyone have any insights on why the class isn't being added to Panel Art? Additionally, I'm exploring the option of wrapping Link 4.1 with a span that has a specific class.
$(document).ready(function() {
$('#navPanel nav a:nth-child(7)').addClass('modal-toggle');
});
[custom CSS code here]
[external script and stylesheet sources here]
https://i.sstatic.net/v3pwx.png
screenshot showing the missing class in the inspector