Hi,
How to insert a custom script in the file? I am using HTML > before </body> but it generates an error because my script starts with a <script> tag and after generating the project this script embeds into index.js and generates an error for the script tag used by me.
Please help ...
Thanks.
How to insert a custom script?
How to insert a custom script?
Running WYSIWYG Web Builder since 2022...
Re: How to insert a custom script?
Where you need to insert the script depends on the script itself.
Without knowing how the script works, it is not possible to say anything meaningful about this.
Without knowing how the script works, it is not possible to say anything meaningful about this.
Re: How to insert a custom script?
The script is for Jornaya, and as per them, this script should be inserted before closing the body tag.
Running WYSIWYG Web Builder since 2022...
Re: How to insert a custom script?
When I try to add before </body> tag using page HTML, it generates this error: " Uncaught SyntaxError: Unexpected token '<' " because of the script tag
Running WYSIWYG Web Builder since 2022...
Re: How to insert a custom script?
Running WYSIWYG Web Builder since 2022...
Re: How to insert a custom script?
Are you sure you are entering the script correctly into WB?
I don't believe a <script> tag should not be in a separate .js file like your image. The <script> tag should only be in the html portion referencing the function in your .js file.
What does the original script look like that you are inserting?
I don't believe a <script> tag should not be in a separate .js file like your image. The <script> tag should only be in the html portion referencing the function in your .js file.
What does the original script look like that you are inserting?
Re: How to insert a custom script?
You can control the HTML/Javascript output in Tools -> Options -> HTML
If you do not want the code to be placed in an external js file then uncheck 'Generate external JS file'
Note that we cannot give support on third party code. But if you leave all HTML output on their default then the code will be inserted "AS IS".
If you do not want the code to be placed in an external js file then uncheck 'Generate external JS file'
Note that we cannot give support on third party code. But if you leave all HTML output on their default then the code will be inserted "AS IS".