Title: custom jquery scrollbars
Last modified: August 21, 2016

---

# custom jquery scrollbars

 *  [willcm](https://wordpress.org/support/users/willcm/)
 * (@willcm)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/custom-jquery-scrollbars/)
 * Hi,
 * I would like to use a [custom scrollbar](http://manos.malihu.gr/jquery-custom-content-scroller/)
   with Colorbox
 * All the custom scrollbar files have been loaded as per the instructions. I’m 
   guessing that I need to apply to the #cboxLoadedContent div so I’ve loaded as
   per this code, however it’s not working:
 *     ```
       (function(jQuery){
           jQuery(window).load(function(){
               jQuery("#cboxLoadedContent").mCustomScrollbar();
           });
       })(jQuery);
       ```
   
 * Using Firebug there’s no alteration to the standard coding i.e. the JavaScript
   isn’t firing. However if I add to the div #cboxContent the JavaScript fires and
   a class mCustomScrollbar _mCS_1 is added to the #cboxContent div. But this doesn’t
   have a scrollbar so nothing is shown.
 * The question is why isn’t it working on the right div i.e. #cboxLoadedContent?
 * [http://wordpress.org/plugins/jquery-colorbox/](http://wordpress.org/plugins/jquery-colorbox/)

The topic ‘custom jquery scrollbars’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-colorbox_848c98.svg)
 * [jQuery Colorbox](https://wordpress.org/plugins/jquery-colorbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-colorbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-colorbox/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-colorbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-colorbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-colorbox/reviews/)

## Tags

 * [scrollbars](https://wordpress.org/support/topic-tag/scrollbars/)

 * 0 replies
 * 1 participant
 * Last reply from: [willcm](https://wordpress.org/support/users/willcm/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/custom-jquery-scrollbars/)
 * Status: not resolved