Board Thread:Support Requests - Designing Your Wikia/@comment-26156026-20150325153220/@comment-452-20150326155555

Penguin-Pal wrote:


 * Adding a section to the top of the rail

Kirkburn has recently affirmed that this is not allowed, and sections added to the rail must be below the top ad: Thread:814039

Also, this is how I do it: $(function { if ($('#WikiaRail').length) {     $('#WikiaRail').bind('DOMNodeInserted.modules', function(event) { //fires after lazy-loading takes place. if ($('#WikiaRail section').size && !$('#MyModule').size) { $('#WikiaRail section:first-of-type').before(""         + Your content goes here.          +" "); }   });  //end of DOMNodeInserted block  } }); I used this method, because at the time the right rail was being lazy loaded after the page was loaded - and it was being refreshed twice. A timer would have also solved this problem, but I personally don't like using timers. I'm unsure whether this situation still occurs, but this method still works, so I've had no reason to rewrite it.