Smarty

How to add stylesheets and javascript in smarty

how to add styles and javascript, to smarty application, in the head section  written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty.

for that reason go to below code

we can the simple code in the smarty application for style sheet and javascript , we add the add one keyword in the tpl files, then

{literal}
<style type=”text/css”>
.style1
{
font-family:Arial, Helvetica, sans-serif;
color:#666666;
}
</style>
{/literal}

It will be useful.

3 thoughts on “How to add stylesheets and javascript in smarty”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.