I have a modern SPO page and i want to hide the text "Add Link" using CSS. I found the class and used the below style in Modern Script editor webpart to hide the text but it is not working:
Can someone tell me what i am doing wrong?
<style type="text/css">
.ms-HorizontalNavItem {
display: none !important;
}
</style>
HTML Element Details: