Archived topic
What is the CSS to add a image to the"Back to Top Button"
3 replies · Started by Kevin on April 30, 2018
Viewing posts 1–4 of 4
What is the CSS to add a image to the"Back to Top Button"?
Hi Kevin,
You could do something like this:
.generate-back-to-top i {
display: none;
}
.generate-back-to-top:before {
content: url(URL TO YOUR IMAGE);
}
Thanks, Tom that works. I do have the image but I have a gray background what css do I need to change that.
Here is the URL for the image https://kevintunis.staging.wpengine.com/wp-content/uploads/2018/04/KT-log.svg which has a white background.
Try this:
.generate-back-to-top,
.generate-back-to-top:visited,
.generate-back-to-top:hover {
background-color: transparent;
}
This archived topic is closed to new replies.