Home > Smarty > How to add stylesheets and javascript in 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.

Categories: Smarty
  1. October 14, 2009 at 12:26 pm | #1

    Hello,

    For leveraging traffic from the internet, I have manually collected a list of quality blogs and sites with whom I am interested in getting associated.

    I liked your Site/blog and i’m interested in having my blog’s text link in your blog roll or Friends Section.

    To process this link exchange please place my blog on your home page using the
    below info

    Title: PHP Developer

    Url: http://www.adamsinfo.com/php-mysql-developer/

    And send me your link info with confirmation of my link so that I could place
    you link on my blog. We will make link back to you on our home page (PR 5).

    I hope I will hear from you as soon as possible.
    Sincerely,
    Webmaster
    Adamsinfo.com
    seo@apnicsolutions.com

  1. No trackbacks yet.