surfsup Well-known member Mar 7, 2018 #1 Where can I go to add scripts in the footer or so that way the script is running on every page? thanks
Where can I go to add scripts in the footer or so that way the script is running on every page? thanks
surfsup Well-known member Mar 7, 2018 #3 M@rc said: PAGE_CONTAINER template Click to expand... thank you, do I need to put any <xf> </xf> anywhere betetween or can the script just go on the bottom as is? Upvote 0 Downvote
M@rc said: PAGE_CONTAINER template Click to expand... thank you, do I need to put any <xf> </xf> anywhere betetween or can the script just go on the bottom as is?
M@rc Well-known member Mar 7, 2018 #4 surfsup said: thank you, do I need to put any <xf> </xf> anywhere betetween or can the script just go on the bottom as is? Click to expand... Nope. Just paste the script. Example : Code: <script type="text/javascript"> blah blah blah I do some cool stuff blah... </script> Upvote 0 Downvote
surfsup said: thank you, do I need to put any <xf> </xf> anywhere betetween or can the script just go on the bottom as is? Click to expand... Nope. Just paste the script. Example : Code: <script type="text/javascript"> blah blah blah I do some cool stuff blah... </script>
Steve F Well-known member Mar 7, 2018 #5 If you need it on every page use the helper_js_global template. Upvote 0 Downvote
Breixo Well-known member May 23, 2018 #6 Steve F said: If you need it on every page use the helper_js_global template. Click to expand... Thanks, tried there (looks cleaner than adding it at PAGE_CONTAINER), but it doesn't show. Should I use xf:macro or something similar? Thanks for the help! PS: it works for me at PAGE_CONTAINER Upvote 0 Downvote
Steve F said: If you need it on every page use the helper_js_global template. Click to expand... Thanks, tried there (looks cleaner than adding it at PAGE_CONTAINER), but it doesn't show. Should I use xf:macro or something similar? Thanks for the help! PS: it works for me at PAGE_CONTAINER
T TiKu Member Feb 3, 2019 #7 Steve F said: If you need it on every page use the helper_js_global template. Click to expand... I have put my script there, but it does not show up. Do you have an example how to do it? Upvote 0 Downvote
Steve F said: If you need it on every page use the helper_js_global template. Click to expand... I have put my script there, but it does not show up. Do you have an example how to do it?