Select Page

How can we help you today?

Categories
← Back
Print

Back To Top Button

Divi Pixel allows you to fully customize a Back To Top Button. You can change its size, icon, colors, add shadows and even add a custom link.
To customize the Back To Top Button, enable this option in Divi Pixel Settings Divi → Divi Pixel → General Settings.

To customize the Back To Top Button, go to Divi → Theme Customizer → General → Back To Top Button.

Translations

Regrettably, translation plugins don’t currently support translating the custom text for the Back To Top Button. To translate this text, you can include the following JavaScript script in your footer, utilizing the language attribute.

<script>
const dipi_lang = document.documentElement.lang
const dipi_btt = document.querySelector('.dipi_btt_wrapper .btt_custom_text');
if(dipi_btt) {
    if(dipi_lang === 'fr-FR'){
        dipi_btt.innerText = 'French Text';
    }
    if(dipi_lang === 'en-US'){
        dipi_btt.innerText = 'English Text';
    }    
}
</script>
Next Browser Scrollbar
Table of Contents