[Support request] What is the CSS to add a image to the"Back to Top Button"

Home Forums Support [Support request] What is the CSS to add a image to the"Back to Top Button"

Home Forums Support What is the CSS to add a image to the"Back to Top Button"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #564083
    Kevin

    What is the CSS to add a image to the”Back to Top Button”?

    #564185
    Tom
    Lead Developer
    Lead Developer

    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);
    }
    #564207
    Kevin

    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.

    #564251
    Tom
    Lead Developer
    Lead Developer

    Try this:

    .generate-back-to-top, 
    .generate-back-to-top:visited,
    .generate-back-to-top:hover {
        background-color: transparent;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.