Hi,
i’ve inserted this code as you suggested:
@media only screen and (max-width: 767px) {
.responsive #scroll-top-link {
display: block !important;
}}
but it doesn’t seems to work: the button scroll to top is always visible!
How can i fix this?
Thanks
Hey lab26_snc,
So what are you looking to achieve? The code displays the scroll to top link/button on mobile.
Best regards,
Rikard
Yes but I want the scroll to top link/button only on mobile. Instead the button is visible also on desktop.
How can I fix this?
Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:
@media only screen and (max-width: 767px) {
.responsive #scroll-top-link {
display: block !important;
}}
@media only screen and (min-width: 768px) {
.responsive #scroll-top-link {
display: none !important;
}}
After applying the css, Please clear your browser cache and check.
Best regards,
Mike