Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • djony_z Friend
    #1066593

    Hello! Tell me please, how can I add a particles.js script to the site (modules, articles)? How to connect the script to the T3 framework? Thank you in advance!

    Saguaros Moderator
    #1066728

    Hi,

    In the download package of above link, you can see how it’s loaded via the demo.

    With template built with t3 framework, you can put into the JS folder: root/templates/your_default_template/js/

    and put the necessary JS files into this directory (like particles.js / stats.js / app.js)

    Then when you want to call these files in modules or other parts, you can use script like this:

    <script type="text/javascript" src="<?php echo T3_TEMPLATE_URL ?>/js/particles.js"> &lt;/script&gt;
    <script type="text/javascript" src="<?php echo T3_TEMPLATE_URL ?>/js/app.js">&lt;/script&gt;
    <script type="text/javascript" src="<?php echo T3_TEMPLATE_URL ?>/js/stats.js">&lt;/script&gt;
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Saguaros 7 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum