Site logo

Archived topic

Back To Top button text won't stick

9 replies · Started by Peter on January 11, 2022

Viewing posts 1–10 of 10

I've enabled the Back To Top button, changed the shape (via CSS code), chosen the background colors and the arrow (text) colors. Everything works fine except when viewing the live site, the arrow colors do not update.

Any help would be appreciated. Thanks.

Sure.

Thanks Leo. Is this just a matter of tweaking a setting in Elementor, or will it be more complicated?

Not sure if that can be tweaked in Elementor as we are not expert of Elementor.

If you can not find the solution in Elementor, try this CSS:

body a.generate-back-to-top {
    color: #ffffff;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Hi Ying,

That fixed the initial color but not the hover color. Can you give me the additional CSS for that?

Sorry, I'm new to CSS.

Thanks,

Peter

Hi there,

you can use this CSS for the hover:

a.generate-back-to-top:hover, a.generate-back-to-top:focus {
    background-color: #ffbe0b;
    color: #fff !important;
}

Beautiful. Thanks.

Glad to be of help

This archived topic is closed to new replies.