surrien Posted July 7, 2013 Share Posted July 7, 2013 Good afternoon. Tell me, can I install on prestashop this nicescroll http://areaaperta.com/nicescroll/index.html ? And yet if so, how do I do this? Or is there a similar counterparts? Thank you very much. Link to comment Share on other sites More sharing options...
PSfever.com Posted July 7, 2013 Share Posted July 7, 2013 (edited) What Prestashop version do you use? Anyway, download the jquery file and upload to themes/[yourtheme]/js/ folder. I will take a look at it and tell you how to link the .js file (You can always edit it in header.tpl, but better is to define it generally using php). Edited July 7, 2013 by PSfever.com (see edit history) 3 Link to comment Share on other sites More sharing options...
Mellow Posted July 7, 2013 Share Posted July 7, 2013 Hi, It could be interesting to make a module with options configurable... But if you just want to try it out, you can : - Download the plugin, and copy it to the js folder of your theme (prefer the minified version) - Then add the folowing at the end of your theme's footer.tpl <script src="{$js_dir}jquery.nicescroll.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("html").niceScroll(); }); </script> It's quite nice indeed, but useful ??? 2 Link to comment Share on other sites More sharing options...
PSfever.com Posted July 7, 2013 Share Posted July 7, 2013 (edited) Ok, which PS version is it? Anyway place the .js file straight in root/js folder! If 1.5.X. open your FTP /classes/controllers/FrontController.php scroll down to line 715 to public function setMedia() There you should see this code $this->addCSS(_THEME_CSS_DIR_.'global.css', 'all'); $this->addjquery(); $this->addjqueryPlugin('easing'); $this->addJS(_PS_JS_DIR_.'tools.js'); which you'll modify to $this->addCSS(_THEME_CSS_DIR_.'global.css', 'all'); $this->addjquery(); $this->addjqueryPlugin('easing'); $this->addJS(_PS_JS_DIR_.'tools.js'); $this->addJS(_PS_JS_DIR_.'NameOfTheJquery.js'); where NameOfTheJquery is of course Name of the jquery nicescroll plugin :-) I think it should be this jquery.nicescroll.js And now, simply open the jquery.nicescroll.js file and at the end of it, put the code Mellow suggested. $(document).ready(function(){ $("html").niceScroll(); }); It's working for me! Edited July 7, 2013 by PSfever.com (see edit history) 1 Link to comment Share on other sites More sharing options...
surrien Posted July 7, 2013 Author Share Posted July 7, 2013 Wow. Thank you very much! Everything is working. Thanks again. Link to comment Share on other sites More sharing options...
surrien Posted July 7, 2013 Author Share Posted July 7, 2013 Scroll a little buggy. Do you do the same? Link to comment Share on other sites More sharing options...
Mellow Posted July 7, 2013 Share Posted July 7, 2013 Sometimes a bit jerky for me. But I think it depends on the amount of other javascripts running on the page. 1 Link to comment Share on other sites More sharing options...
surrien Posted July 7, 2013 Author Share Posted July 7, 2013 Oh, okay. Thank you very much for your help. Link to comment Share on other sites More sharing options...
prasunparihar Posted November 11, 2014 Share Posted November 11, 2014 My theme is having inbuilt nicescroll. How can I remove it. Please help me ASAP. Link to comment Share on other sites More sharing options...
PSfever.com Posted November 11, 2014 Share Posted November 11, 2014 My theme is having inbuilt nicescroll. How can I remove it. Please help me ASAP. Hi, could you give us link to your site? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now