PDA

View Full Version : Add Javascript to forum MAIN PAGE only


seyed
10-06-2018, 02:34 AM
Hi
I wrote a javascript code that collapse the forums.. I just want this script to be executed ONLY on main page not other pages .. if I add it in footer it will execute on all the pages and cause problem is there any way to add the script only to forum HOME page ?!

Thanks

noypiscripter
10-09-2018, 07:07 PM
Add a Static HTML Module at the bottom of the page and put your script there. To make the module not visible, uncheck all 3 checkboxes for displaying the module on different screen sizes.