If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

OpenCart 2.x. How to remove “To the top” button

OpenCart 2.x. How to remove “To the top” button

This tutorial will show you how to remove To the top button in OpenCart 2.x templates:

OpenCart 2.x. How to remove 'To the top button'-1

  1. Connect to your FTP or access your site files via cPanel and navigate to catalog/view/theme/themeXXX/js/. In this directory locate and open jquery.ui.totop.js file:

    OpenCart 2.x. How to remove 'To the top button'-2

  2. Open the file in any text editor and remove or comment out the following line of code on line 18:

    $('body').append('<a href="#" id="'+settings.containerID+'" class="'+settings.containerClass+'" >'+settings.text+'</a>');

    OpenCart 2.x. How to remove 'To the top button'-3

  3. After you save the changes and re-upload the file, To the top button will be no longer visible on your site:

    OpenCart 2.x. How to remove 'To the top button'-4

Thank you for watching our tutorial. Now you know how to remove To the top button in OpenCart 2.x templates.

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to remove “To the top” button