Topic: How to put javascript trought administration into post

Hi, please can help me how to? I tried put it into editor and save it, but i see only text code.... then i tried it put into snipeset, but again no succes.... hmm How can moderator put any javascript code into my webpage trought administration? Is this possible?

Re: How to put javascript trought administration into post

@raipergm34

Yes you can, login on your monstra, then go to Extends > Themes > Create new JS option.

Then paste your JS code on it.
Then Open your footer.chunk.php and paste this code:

<script src="<?php echo Site::url(); ?>/public/themes/mytheme/myscript.js"></script>

Hit Save and that's it.

If you need to post something else, check the header.chunk.php

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: How to put javascript trought administration into post

I am a bit confusing, why place it into footer???? But thanks you give me idea and some light on my way, i will be run lots of scipts, on every page one

Re: How to put javascript trought administration into post

@raipergm34

If you place them on your footer.chunk.php the LOAD is less wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website