Thread Rating:
  • 15 Vote(s) - 3.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] jQuery collapsible sidebar
Hi, nothing special but here is a small addition.. everyone who is using this and want the button(s) to be shown on the Index Page only. You can add the following small piece of code to your sidebar.js file:

 if($('.forums').length < 1) {

Make sure that you also put a container around the two buttons, something like this:

<span class="cont"> 
    <a class="buttons" style="float: right;"></a>
    <a class="clickedbuttons" style="float: right;"></a>

PS: You could also check if "sidebar" or even both exists ofcourse.


Forum Jump:

Users browsing this thread: 1 Guest(s)