The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Displaying Widgets Only on Homepage

View previous topic View next topic Go down

Displaying Widgets Only on Homepage

Post by ELTP on November 16th 2017, 3:20 pm

Technical Details


Forum version : #Invision
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://www.duelmasters.org

Description of problem

I looked into this matter in the help board but couldn't seem to find code for invision forums. So we have widgets on the both sides of the actual forum, and would like to hide them outside the home page.


ABOVE PROBLEM IS MY MAIN CONCERN but I'd love to have the following problems solved as well.
I also have problems with hiding the forum name in the navigational category chain (would love to hide it on the homepage as well).

Then I haven't yet successfully implemented code that would reduce the spacing between different categories thus making the forum feel more "whole".
avatar
ELTP
New Member

Male Posts : 8
Reputation : 2
Language : English and Finnish

http://duelmasters.foorumini.com

Back to top Go down

Re: Displaying Widgets Only on Homepage

Post by Mr.SnOuP on November 16th 2017, 4:58 pm

Hello ,

Go to :
Administration Panel> MODULES> HTML & JAVASCRIPT> Javascript codes management
*Add a new Javascript Code with these Items :
Title * : as you like
Placement :In the home page
*paste this code

Code:
$(document).ready( function() {
  var salemh = window.location.href;
  if (salemh === "http://www.duelmasters.org") {
  document.getElementById("left").style.display = 'none';
  document.getElementById("right").style.display = 'none';
}
     });

*than SUBMIT

Mr.SnOuP
New Member

Posts : 17
Reputation : 3
Language : En & Fr

http://en39.forum.st/forum

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum