Go to top button zoom

Hi

Is there a way to prevent the go to top button of getting bigger when you zoom a page on a phone sized screen ?

Thanks in advance

The only solution I have found is to hide it completly, but I would like to keep it for a better user experience.
Any idea on how to fix it ?

Hello Arkaion,

Please try to use the following CSS code.

You can add CSS code in Dashboard → Appearance → Customize → Additional CSS (WordPress 4.7 and up).

@media only screen and (max-width: 640px) {
    a.go-top.show {
        font-size: 7vw;
        width: 8vw;
        height: 8vw;
        line-height: 7vw;
        right: 4vw;
        bottom: 4vw;
        border-radius: 1vw;
    }
}

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

It work like a charm, thank you very much !
Have a nice day.

Great, you are welcome Arkaion!

And have a nice day as well :slight_smile:

Kind Regards, Roman.