Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsResponsivness
How to Enable or Disable the Back to Top Button Based on Device
How to Enable or Disable the Back to Top Button Based on Device

Learn how to enable or disable the "Back to Top" button based on device type to enhance user navigation on your website.

Updated over a week ago

Enhancing user navigation is key to improving the overall experience on your website. The Back to Top button is a useful feature that allows visitors to quickly return to the top of the page.

However, its effectiveness can vary depending on the device being used. For a more tailored user experience, you might want to enable or disable this button based on whether the visitor is using a desktop, tablet, or mobile device.

This article will guide you through the steps to configure the Back to Top button for different devices, ensuring optimal functionality and user satisfaction.

Enable the Back to Top button

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab

  2. Enable the Back to Top Button option

    Enable back to top button

Note: The Back to Top button will show on all devices

Customize the Back to Top button to appear only on a specific device

Display the Back to Top button only on Desktop devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (max-width: 980px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none!important;
    }
    }

Display the Back to Top button only on Tablet devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (min-width: 1024px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }

    @media (max-width: 980px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }

Display the Back to Top button only on Phone devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (min-width: 768px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }

Display the Back to Top button only on Desktop and Tablet devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (max-width: 768px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }

Display the Back to Top button only on Phone and Tablet devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (min-width: 980px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }

Display the Back to Top button only on Phone and Tablet devices

  1. Go to WordPress Dashboard → Divi Theme → Options General Tab → Custom CSS

  2. Add this CSS code:

    @media (min-width: 980px) {
    .et_pb_scroll_top.et-pb-icon {
    display: none !important;
    }
    }
Did this answer your question?