Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

changing link rel=stylesheet


Reply


2 Posts   1721 Views

Avatar
George

Community Member, 41 Posts

9 February 2009 at 7:48am

With "Requirements::themedCSS('<cssfile>')" you get "<link rel="stylesheet" type="text/css" href="<cssfile>".
Do any parameters exist for themedCSS?
For example to get <link rel="stylesheet" type="text/css" media="screen" href="<cssfile>" or <link rel="stylesheet" type="text/css" media="print" .href="<cssfile>".

Avatar
Willr

Forum Moderator, 5513 Posts

9 February 2009 at 10:26am

Edited: 09/02/2009 10:26am

The second parameter of Requirements::themedCSS() is the media type. Eg

Requirements::themedCSS('mycssprintfile', 'print');