How to remove “To the top” button in OpenCart

How to remove “To the top” button in OpenCart

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

 

  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:

     

  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>');

     

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

     

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

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.