Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Oct 2018, 05:34
seyed seyed is offline
 
Join Date: Aug 2018
Add Javascript to forum MAIN PAGE only

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
Reply With Quote
  #2  
Old 09 Oct 2018, 22:07
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
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.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:32.

Layout Options | Width: Wide Color: