In some cases, we might to add some extra class or some extra attributes to the primary menu link in Drupal 7.
There are different ways of doing it. I have used the template.php file to customize the links. A template.php files resides inside your themes folder. Add this function to your template file and customize the links