How to include .css file in smarty template file?

Hi, I am new to php, html, css and smarty. How to insert / include css file in html file in smarty?

+4
source share
1 answer

The answer from @Nambi Narayanan looks very erroneous and poorly implemented. I recommend using the following block:

{block name=head} <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> {/block} 

or you can simply add the link tag directly on the page without Smarty:

 <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> 
+4
source

Source: https://habr.com/ru/post/1502150/


All Articles