Categories

Featured templates

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

Martin Clarke December 7, 2015
Rating: 4.0. From 3 votes.
Please wait...


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

OpenCart eCommerce Themes
This entry was posted in OpenCart Tutorials and tagged button, opencart, remove, to top. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.