XF 2.0 Link external stylesheet?

RobParker

Well-known member
What's the correct way to link an external stylesheet?

Should I hardcode it into the pagecontainer template or something else?
 
There's a way to define code to appear in the header via the content templates too, so it doesn't require adding stuff globally, so it will only apply to the specific page:
HTML:
<xf:head option="myExternalStylesheet"><link rel="stylesheet" href="https://url.to.your/external.css" /></xf:head>
 
Back
Top Bottom