Yii Framework Forum: Yii2 BootstrapAsset printing URLs - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii2 BootstrapAsset printing URLs Rate Topic: -----

#1 User is offline   compugator 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 67
  • Joined: 01-May 11

Posted 20 February 2018 - 12:17 PM

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.
0

#2 User is offline   alrazi 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,546
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 20 February 2018 - 02:37 PM

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

#3 User is offline   compugator 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 67
  • Joined: 01-May 11

Posted 20 February 2018 - 03:18 PM

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


@media print {
a:link:after, a:visited:after {content:"";}
}

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users