Hi @danis44
Yes, only works if a pdf has been added, so add a pdf just to check the code works.
echo '<a href="'.$pdf['url'].'" class="your-class-name" target="_blank">link</a>';
Update to this line for a class and opening in a new tab. Just change the class to what you need, then add styling via CSS