How to get rid of the “Edit links” link in the top navigation in SharePoint

Add a Media and Content – Script Editor web part and add the code below.

<style>
.ms-displayInlineBlock{
display: none;
}
</style>