Yii2 BootstrapAsset printing URLs

Is there a way to stop the Yii2 BootstrapAsset from showing the urls of links and buttons when I print a page? I am hoping there is a way to do this without modifying the BootStrapAsset files directly so when I do an update my changes won’t be lost.

you can overwrite the css in a custom css file and hide the links for print screen.

I tried adding this to my site.css file but it does not work.

[size="2"]@media print {[/size]

a:link:after, a:visited:after {content:"";} 


The site.css file does load after the bootstrap.css asset.